D
DS
I Have this sample code...and it works great. I want to change the
forms that pop-up. Where are the forms located within this code. I
want to replace the input dox as well as the error message. Any help
would be appreciated. Thank You.
DS
Private Sub Label18_DblClick(Cancel As Integer)
'Attached to On Click event of cmdOpenBackofficeForm
Dim strPasswd
strPasswd = InputBox("Enter Password", "Restricted Form")
'Check to see if there is any entry made to input box, or if
'cancel button is pressed. If no entry made then exit sub.
If strPasswd = "" Or strPasswd = Empty Then
MsgBox "No Input Provided", vbInformation, "Required Data"
Exit Sub
End If
'If correct password is entered open Backoffice form
'If incorrect password entered give message and exit sub
If strPasswd = "Candy" Then
DoCmd.OpenForm "Backoffice", acNormal
Else
MsgBox "Sorry, you do not have access to this form", vbOKOnly,
"Important Information"
Exit Sub
End If
End Sub
forms that pop-up. Where are the forms located within this code. I
want to replace the input dox as well as the error message. Any help
would be appreciated. Thank You.
DS
Private Sub Label18_DblClick(Cancel As Integer)
'Attached to On Click event of cmdOpenBackofficeForm
Dim strPasswd
strPasswd = InputBox("Enter Password", "Restricted Form")
'Check to see if there is any entry made to input box, or if
'cancel button is pressed. If no entry made then exit sub.
If strPasswd = "" Or strPasswd = Empty Then
MsgBox "No Input Provided", vbInformation, "Required Data"
Exit Sub
End If
'If correct password is entered open Backoffice form
'If incorrect password entered give message and exit sub
If strPasswd = "Candy" Then
DoCmd.OpenForm "Backoffice", acNormal
Else
MsgBox "Sorry, you do not have access to this form", vbOKOnly,
"Important Information"
Exit Sub
End If
End Sub