hi the code below is what I use for the administrator to open the form issue list
what I need Help with is
there are 3 administrators who passwords are CH1 , SK1, AND EW1
at this time the table shows ALL the issue raised by the 3 companies ie API , API CAP , AND PPI-ENG
so I would like it that if the password is CH1 the only the records for PPI-ENG are shown , of EW1 is selected then only API records are shown etc
thanks for your help
steve
what I need Help with is
there are 3 administrators who passwords are CH1 , SK1, AND EW1
at this time the table shows ALL the issue raised by the 3 companies ie API , API CAP , AND PPI-ENG
so I would like it that if the password is CH1 the only the records for PPI-ENG are shown , of EW1 is selected then only API records are shown etc
thanks for your help
steve
Dim strInput As String
Dim strMsg As String
Beep
strMsg = "Please Enter the password to allow access."
strInput = InputBox(Prompt:=strMsg, Title:="Admin Password")
If strInput = "CH1" Then
'MsgBox "Password accepted! Welcome! " & "Ellen " 'password is correct
DoCmd.OpenForm "issue list"
DoCmd.Maximize
DoCmd.Close acForm, Me.Name
Else 'password is incorrect
MsgBox "Incorrect Password!" & vbCrLf & vbLf & "You are not allowed access to the ''issue list''.", vbCritical, "Invalid Password"
Exit Sub
End If
End Sub