0
我在MS Access 2013中工作,我想为窗体上的按钮编写一些VBA代码。我想让代码做两件事:将我指定的值插入空字段并锁定表单中的所有字段。将值插入之前的空字段,锁定它们
acCmdFreezeColumn似乎并不合适,因为它没有引用表单。我目前的想法是使用这个框架:
Sub buttonLockForm1_Click()
Dim intResponse As Integer
intResponse = MsgBox(_
Prompt:="Are you sure you want to lock the form?", _
Buttons:=vbYesNo + vbQuestion + vbDefaultButton2, _
Title:="Lock the Form?")
If intResponse = vbYes Then
...
...
Else: If intResponse = vbNo Then Exit Sub
End If
End Sub
任何帮助,您可以提供将不胜感激!