📄 form1.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form Form1
BorderStyle = 1 'Fixed Single
ClientHeight = 6240
ClientLeft = 45
ClientTop = 330
ClientWidth = 8925
Icon = "Form1.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6240
ScaleWidth = 8925
StartUpPosition = 1 '所有者中心
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
BackColor = &H00FFC0C0&
Height = 4575
Left = 0
ScaleHeight = 4515
ScaleWidth = 8835
TabIndex = 0
Top = 600
Width = 8895
Begin MSComCtl2.DTPicker DTPicker1
Height = 375
Left = 4320
TabIndex = 7
Top = 1680
Visible = 0 'False
Width = 3135
_ExtentX = 5530
_ExtentY = 661
_Version = 393216
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
CustomFormat = "yyyy-MM-dd"
Format = 25362435
CurrentDate = 38848
End
Begin VB.ComboBox Combo2
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 1080
TabIndex = 6
Top = 1680
Visible = 0 'False
Width = 3135
End
Begin VB.TextBox Txt
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 0
Left = 1680
TabIndex = 1
Top = 480
Visible = 0 'False
Width = 3135
End
Begin VB.Label Lbl
Alignment = 1 'Right Justify
BackColor = &H00FFC0C0&
Height = 420
Index = 0
Left = 1680
TabIndex = 2
Top = -120
Visible = 0 'False
Width = 1140
End
End
Begin VB.Frame Frame2
Height = 735
Left = 0
TabIndex = 8
Top = 5160
Width = 8895
Begin VB.CommandButton cmdRegSave
BackColor = &H80000004&
Caption = "保存"
Height = 375
Left = 6240
Style = 1 'Graphical
TabIndex = 14
Top = 240
Width = 735
End
Begin VB.CommandButton cmdExit
Caption = "退出"
Height = 375
Left = 7440
TabIndex = 9
Top = 240
Width = 1335
End
Begin VB.CommandButton cmdRegLast
BackColor = &H80000004&
Caption = ">>"
Height = 375
Left = 1200
Style = 1 'Graphical
TabIndex = 10
Top = 240
Width = 375
End
Begin VB.CommandButton cmdRegNext
BackColor = &H80000004&
Caption = ">"
Height = 375
Left = 840
Style = 1 'Graphical
TabIndex = 11
Top = 240
Width = 375
End
Begin VB.CommandButton cmdRegPrevious
BackColor = &H80000004&
Caption = "<"
Height = 375
Left = 480
Style = 1 'Graphical
TabIndex = 12
Top = 240
Width = 375
End
Begin VB.CommandButton cmdRegFirst
BackColor = &H80000004&
Caption = "<<"
Height = 375
Left = 120
Style = 1 'Graphical
TabIndex = 13
Top = 240
Width = 375
End
Begin VB.CommandButton cmdRegDel
BackColor = &H80000004&
Caption = "删除"
Height = 375
Left = 4680
Style = 1 'Graphical
TabIndex = 15
Top = 240
Width = 735
End
Begin VB.CommandButton cmdRegLook
BackColor = &H80000004&
Caption = "浏览"
Height = 375
Left = 3960
Style = 1 'Graphical
TabIndex = 16
Top = 240
Width = 735
End
Begin VB.CommandButton cmdRegAdd
BackColor = &H80000004&
Caption = "添加"
Height = 375
Left = 3240
Style = 1 'Graphical
TabIndex = 17
Top = 240
Width = 735
End
End
Begin VB.Frame Frame1
BackColor = &H80000000&
Height = 615
Left = 0
TabIndex = 3
Top = 0
Width = 8895
Begin VB.PictureBox Picture2
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
BorderStyle = 0 'None
ForeColor = &H80000008&
Height = 615
Left = 0
ScaleHeight = 615
ScaleWidth = 8895
TabIndex = 18
Top = 0
Width = 8895
Begin VB.Label Label3
AutoSize = -1 'True
BackColor = &H00C0C0C0&
Caption = "高校科研管理系统"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 240
Left = 4440
TabIndex = 20
Top = 240
Width = 1920
End
Begin VB.Label Label2
AutoSize = -1 'True
BackColor = &H00C0C0C0&
BeginProperty Font
Name = "华文新魏"
Size = 21.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 450
Left = 240
TabIndex = 19
Top = 120
Width = 105
End
End
Begin VB.ComboBox Combo1
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
ItemData = "Form1.frx":044A
Left = 2160
List = "Form1.frx":0460
TabIndex = 4
Top = 180
Width = 3735
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H80000000&
Caption = "请选择要操作的数据表:"
Height = 180
Left = 120
TabIndex = 5
Top = 270
Width = 1890
End
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim nModeSys As Integer
Private Sub cmdExit_Click()
Unload Me
End Sub
Private Sub cmdRegAdd_Click() '''添加
nModeSys = 2 ''添加操作
Dim i As Integer
For i = 1 To Val(Txt(0).Text)
Txt(i).Text = ""
Next i
End Sub
Private Sub cmdRegDel_Click() '''删除
On Error GoTo Err
Dim ss As Integer
ss = MsgBox("真的删除该记录吗?", vbCritical + vbOKCancel, "系统提示")
If ss = 1 Then
If rs.BOF And rs.EOF Then
For i = 1 To Val(Txt(0).Text)
Txt(i).Text = ""
Next i
Else
rs.Delete
rs.UpdateBatch
rs.Filter = adFilterNone
rs.Requery
If Not rs.EOF Then
rs.MoveLast
For i = 1 To Val(Txt(0).Text)
If Not IsNull(rs.Fields(i - 1)) Then
Txt(i) = rs.Fields(i - 1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -