Sep 11, 2001 #1 Lavey IS-IT--Management Joined Jun 1, 2001 Messages 115 Location DE Hi can i set a password on a command button that opens a form? Just a quckie i hope ?!! Cheers
Sep 11, 2001 #2 jebry Programmer Joined Aug 6, 2001 Messages 3,006 Location US Hi! In the Form's Open event procedure use the following code: Dim strPassword as String strPassword = InputBox("Please Enter the password: " If strPassword <> "YourPassword" Then Cancel = -1 End If hth Jeff Bridgham Upvote 0 Downvote
Hi! In the Form's Open event procedure use the following code: Dim strPassword as String strPassword = InputBox("Please Enter the password: " If strPassword <> "YourPassword" Then Cancel = -1 End If hth Jeff Bridgham
Sep 12, 2001 Thread starter #3 Lavey IS-IT--Management Joined Jun 1, 2001 Messages 115 Location DE Nice1, that'll do me thanks alot Jebry!! Upvote 0 Downvote