Command Button code to preview a report

RaunLGoode

Registered User.
Local time
Today, 03:41
Joined
Feb 18, 2004
Messages
122
I want to program a command button that allows the user to preview a report. Right now the command opens the report / prints it.

What command(s) would I use rather than OpenReport...to preview a report rather than open/print the report

[example:
DoCmd.OpenReport "rptWeeklyTime",... ]
I am using Access 2000
 
DoCmd.OpenReport "rptWeeklyTime", acViewPreview
 

Users who are viewing this thread

Back
Top Bottom