Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DoCmd.OpenReport opens in print

Status
Not open for further replies.

jgd12345

Technical User
Apr 22, 2003
124
GB
When I run the command DoCmd.OpenReport... (in vba) it starts to print the report. Why won't it just open the report normally? I'd be greatful if anyone can help. Cheers
 
Hi!

Yes, when no view is specified, the acVievNormal is default, which means printing. If you want to preview, try using the acViewPreview argument:

[tt]docmd.openreport "myrpt",acViewPreview[/tt]

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top