K
Karen
I got some help earlier for generating a print preview &/or print prompt in a
form. I was well-advised, except the following language doesn't work. It
doesn't bring the user back to the form to once again enter the Project
Number if he selects "No" to printing the report.
' show form
Me.Visible = True
' clear text box ready for next search
Me.txtProjectNumber = ""
' move focus to report in preview if open
On Error Resume Next
DoCmd.SelectObject acReport, conREPORTNAME
Can you see anything wrong with it?
form. I was well-advised, except the following language doesn't work. It
doesn't bring the user back to the form to once again enter the Project
Number if he selects "No" to printing the report.
' show form
Me.Visible = True
' clear text box ready for next search
Me.txtProjectNumber = ""
' move focus to report in preview if open
On Error Resume Next
DoCmd.SelectObject acReport, conREPORTNAME
Can you see anything wrong with it?