D
DBru
I have password protected some reports on my database. The ones that
generate off of a form work perfectly. If I have the password page go
straight into a report after entering the password a screen that says
"Printing" freezes on my screen and won't allow me to input the information
to generate the report. My code is shown below for the button off of the
password form. I can't figure it out.
Private Sub Command6_Click()
password.SetFocus
If password = "****" Then
MsgBox "Access Granted", vbInformation, "Reporting System"
DoCmd.Close
DoCmd.OpenReport "Report by Day"
Else
MsgBox "Please re-enter your Username and Password."
End If
End Sub
generate off of a form work perfectly. If I have the password page go
straight into a report after entering the password a screen that says
"Printing" freezes on my screen and won't allow me to input the information
to generate the report. My code is shown below for the button off of the
password form. I can't figure it out.
Private Sub Command6_Click()
password.SetFocus
If password = "****" Then
MsgBox "Access Granted", vbInformation, "Reporting System"
DoCmd.Close
DoCmd.OpenReport "Report by Day"
Else
MsgBox "Please re-enter your Username and Password."
End If
End Sub