Run-time error with print preview

Sound Steve

Registered User.
Local time
Today, 18:27
Joined
Sep 9, 2004
Messages
14
Wonder if anyone can help.

I have inherretied another legacy.....this time a Timesheet database. I'm trying to cleanit up and iron out the issues....i wonder if anyone knows how to deal with this.....

When i try ti preview the timesheet i get the following error...

"Run-time error '7794'"
"Microsoft Access couldn;t find the toolbar 'print'"

The line of code it stops the debugger on is...

DoCmd.OpenReport stDocName, acViewPreview

where stDocName is the document to be printed. AcView Preview has the value '"2" in it when you put the cursor over it.

I'm stumped!
 
:p Hello Steve!
Try this

DOCmd.OpenReport "ReportName", acViewPreview
 

Users who are viewing this thread

Back
Top Bottom