mkelly
Registered User.
- Local time
- Today, 14:17
- Joined
- Apr 10, 2002
- Messages
- 213
If this is my button code:
Private Sub edit_info_form_Click()
On Error GoTo Err_edit_info_form_Click
Dim stDocName As String
stDocName = "@open edit information form"
DoCmd.RunMacro stDocName
Exit_edit_info_form_Click:
Exit Sub
Err_edit_info_form_Click:
MsgBox Err.Description
Resume Exit_edit_info_form_Click
End Sub
What code could I add and where so that a password was needed to open the form associated with the button?
Help greatly appriciated
Private Sub edit_info_form_Click()
On Error GoTo Err_edit_info_form_Click
Dim stDocName As String
stDocName = "@open edit information form"
DoCmd.RunMacro stDocName
Exit_edit_info_form_Click:
Exit Sub
Err_edit_info_form_Click:
MsgBox Err.Description
Resume Exit_edit_info_form_Click
End Sub
What code could I add and where so that a password was needed to open the form associated with the button?
Help greatly appriciated