I have 2 users out of 20 that need to see a report... I'm still having problems with my code. Any suggestions???
Private Sub report_Open(Cancel As Integer)
On Error GoTo ErrFO
If ((CurrentUser() <> "phm2600a" And (CurrentUser() <> "phm2800b") Then
MsgBox "ACCESS DENIED."
Cancel = True
End If
ExitFO:
Exit Sub
ErrFO:
MsgBox Err.Description, vbInformation, "report Open Error."
Resume ExitFO
End Sub
Private Sub report_Open(Cancel As Integer)
On Error GoTo ErrFO
If ((CurrentUser() <> "phm2600a" And (CurrentUser() <> "phm2800b") Then
MsgBox "ACCESS DENIED."
Cancel = True
End If
ExitFO:
Exit Sub
ErrFO:
MsgBox Err.Description, vbInformation, "report Open Error."
Resume ExitFO
End Sub