Weresmytriple
Registered User.
- Local time
- Today, 14:28
- Joined
- Sep 5, 2013
- Messages
- 58
hi all
im currently using
as a way of protecting a form however i need the else of this statement to open the form called homepage. any idea how to do this?
thanks
michael
im currently using
Code:
Private Sub Form_Open(Cancel As Integer)
Const cstrUserName As String = "Admin"
Const cstrPassWord As String = "open"
Dim strUserName As String
If strUserName = InputBox("Username:") Then
If strUserName = cstrUserName Then
Dim strPassWord As String
strPassWord = InputBox("Password:")
If strPassWord = cstrPassWord Then
stDocName = "Admin Switchboard"
DoCmd.OpenForm stDocName
Else
End If
Else
End If
End Sub
as a way of protecting a form however i need the else of this statement to open the form called homepage. any idea how to do this?
thanks
michael