Mr_Adams
Active Member
- Joined
- Oct 7, 2002
- Messages
- 475
.
The switchboard I am using was created from the Switchboard manager
On the main Switchboard there is "Admin Switchboard"
when Clicked it will open a password form I created
On this Password form there is the following code
The problem is that when the user clicks "OK' after entering the
correct password the Main Switchboard is still displayed and I
can't get the Admin Switchboard to show
Any ideas on what I'm doing wrong?
Thank You
.
.
The switchboard I am using was created from the Switchboard manager
On the main Switchboard there is "Admin Switchboard"
when Clicked it will open a password form I created
On this Password form there is the following code
Code:
Private Sub OK_Click()
Dim pwd As String
pwd = [Password]
If pwd = "elpaso" Then
DoCmd.Close acForm, "Password_Check", acSaveNo
DoCmd.SelectObject acForm, "Switchboard", True
' Move to the switchboard page that is marked as the Admin.
Me.Filter = "[ItemNumber] = 0 AND [Argument] = 'Admin' "
Me.FilterOn = True
Exit Sub
Else
MsgBox "Access Denied!!!"
DoCmd.Close
DoCmd.SelectObject acForm, "Switchboard", True
End If
End Sub
correct password the Main Switchboard is still displayed and I
can't get the Admin Switchboard to show
Any ideas on what I'm doing wrong?
Thank You
.
.