📄 form2.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form2
Caption = "Form2"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form2"
MDIChild = -1 'True
ScaleHeight = 3195
ScaleWidth = 4680
Begin MSAdodcLib.Adodc Adodc1
Height = 615
Left = 1560
Top = 7320
Width = 4815
_ExtentX = 8493
_ExtentY = 1085
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=D:\信息系统作业\产品数据库1.mdb"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=D:\信息系统作业\产品数据库1.mdb"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "chanpinluru"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.CommandButton Command4
Caption = "确定"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 735
Left = 720
TabIndex = 20
Top = 9720
Width = 2775
End
Begin VB.Frame Frame1
BackColor = &H80000000&
Caption = "输入发生日期"
Height = 5535
Left = 720
TabIndex = 12
Top = 1560
Width = 6015
Begin VB.TextBox Text1
DataField = "档案载入日期"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 0
Top = 360
Width = 1815
End
Begin VB.TextBox Text2
DataField = "档案助录"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 1
Top = 1080
Width = 1815
End
Begin VB.TextBox Text3
DataField = "出生日期"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 2
Top = 1800
Width = 1815
End
Begin VB.TextBox Text4
DataField = "班级"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 3
Top = 2520
Width = 1815
End
Begin VB.TextBox Text5
DataField = "代码"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 4
Top = 3120
Width = 1815
End
Begin VB.TextBox Text6
DataField = "姓名"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 5
Top = 3840
Width = 1815
End
Begin VB.TextBox Text7
DataField = "类别"
DataSource = "Adodc1"
Height = 375
Left = 1800
TabIndex = 6
Top = 4440
Width = 1815
End
Begin VB.Label Label1
BackColor = &H80000000&
Caption = "档案载入日期:"
BeginProperty Font
Name = "隶书"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 19
Top = 360
Width = 1575
End
Begin VB.Label Label2
BackColor = &H80000000&
Caption = "档案助入:"
BeginProperty Font
Name = "隶书"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 240
TabIndex = 18
Top = 1080
Width = 1215
End
Begin VB.Label Label3
BackColor = &H80000000&
Caption = "出生日期:"
BeginProperty Font
Name = "隶书"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 17
Top = 1800
Width = 1215
End
Begin VB.Label Label4
BackColor = &H80000000&
Caption = "班级:"
BeginProperty Font
Name = "隶书"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 360
TabIndex = 16
Top = 2520
Width = 1095
End
Begin VB.Label Label5
BackColor = &H80000000&
Caption = "代码:"
BeginProperty Font
Name = "隶书"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 360
TabIndex = 15
Top = 3240
Width = 1095
End
Begin VB.Label Label6
BackColor = &H80000000&
Caption = "姓名:"
BeginProperty Font
Name = "隶书"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 480
TabIndex = 14
Top = 3960
Width = 1095
End
Begin VB.Label Label7
BackColor = &H80000000&
Caption = "类别:"
BeginProperty Font
Name = "隶书"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 480
TabIndex = 13
Top = 4560
Width = 1095
End
End
Begin VB.CommandButton Command1
BackColor = &H00FFFFFF&
Caption = "添加"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Left = 720
TabIndex = 7
Top = 8400
Width = 2535
End
Begin VB.CommandButton Command2
Caption = "放弃"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Left = 4080
TabIndex = 8
Top = 8400
Width = 2655
End
Begin VB.Frame Frame2
BackColor = &H80000000&
Caption = " 档案载入日期 档案助录 出生日期 班级 代码 姓名 类别 "
Height = 7815
Left = 6960
TabIndex = 9
Top = 1800
Width = 8175
Begin VB.ListBox List1
Height = 7440
Left = 120
TabIndex = 11
Top = 240
Width = 7935
End
End
Begin VB.CommandButton Command3
Caption = "退出"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Left = 4080
TabIndex = 10
Top = 9600
Width = 2775
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
List1.Clear
Static i As Integer
Dim X As String, Y As String, z As String, a As String, b As Integer, c As String, d As String, p As String
X = Text1.Text ' & y = Text2.Text & z = Val(Text3.Text) & a = Text4.Text & b = Val(Text5.Text) & c = Text6.Text & d = Val(Text7.Text) Then
Y = Text2.Text
z = Text3.Text
a = Text4.Text
b = Val(Text5.Text)
c = Text6.Text
d = Text7.Text
p = Format(X, "!@@@@@@@@@@@@@@") & Format(Y, "@@@@@@@@") & Format(z, "@@@@") & Format(a, "@@@@@@@@@@@@") & Format(b, "@@@@@@@@@") & Format(c, "@@@@@@@@@@@@") & Format(d, "@@@@")
List1.AddItem p, i
'i = i + 1
Adodc1.Recordset.AddNew
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text1.SetFocus
Text2.SetFocus
Text3.SetFocus
Text4.SetFocus
Text5.SetFocus
Text6.SetFocus
Text7.SetFocus
End Sub
Private Sub Command3_Click()
Unload Form2
Load MDIForm1
MDIForm1.Show
End Sub
Private Sub Command4_Click()
Adodc1.Recordset.UpdateBatch adAffectAll
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -