📄 frm锁定字段选择.frm
字号:
VERSION 5.00
Begin VB.Form frm锁定字段选择
Caption = "锁定字段选择"
ClientHeight = 1260
ClientLeft = 60
ClientTop = 345
ClientWidth = 4275
LinkTopic = "Form1"
ScaleHeight = 1260
ScaleWidth = 4275
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "放弃(&Q)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 465
Left = 2160
TabIndex = 3
Top = 630
Width = 1365
End
Begin VB.CommandButton Command1
Caption = "确定(&E)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 465
Left = 480
TabIndex = 2
Top = 630
Width = 1365
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
Left = 2490
Style = 2 'Dropdown List
TabIndex = 1
Top = 120
Width = 1605
End
Begin VB.Label Label1
Caption = "选定需要锁定的字段:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 90
TabIndex = 0
Top = 150
Width = 2385
End
End
Attribute VB_Name = "frm锁定字段选择"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
If Len(Trim(Combo1.Text)) > 0 Then
i = 5
Do While i <= 28
If tb2.Fields(i).Name = Combo1.Text Then
yn = i
i = 29
Else
i = i + 1
End If
Loop
FHBJ = True
Unload Me
Else
yn = MsgBox("锁定字段必须选择,请选择!", 48)
End If
End Sub
Private Sub Command2_Click()
FHBJ = False
sdbj = False
Unload Me
End Sub
Private Sub Form_Load()
tb2.MoveFirst
Combo1.Clear
i = 5
Do While i <= 28
'If Len(Trim(tb1.Fields(i).Value)) > 0 Then
Combo1.AddItem tb2.Fields(i).Name
'End If
i = i + 1
Loop
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -