|
-
Aug 5th, 2000, 08:47 AM
#5
Lively Member
Try this...
Private Sub Command1_Click()
On Error Goto Err_OpenForm
Dim Mypwd As String
Mypwd=Inputbox("Enter Your Password")
If Mypwd<> "YourPassword" Then
Exit Sub
Else
Docmd.OpenForm, "FormName"
Endif
Exit_OpenForm:
Exit Sub
Err_OpenForm:
Msgbox Err.Number & " ; " & Err.Description
Resume Exit_OpenForm
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|