开发者

MS Access 2003 - Opening a report without it printing

开发者 https://www.devze.com 2022-12-17 11:46 出处:网络
I used Docmd.OpenReport \"Report1\" from another form and it seems to just want to print the report w开发者_开发问答ithout actually displaying it. I want to display the report, not print itSet the

I used

Docmd.OpenReport "Report1"

from another form and it seems to just want to print the report w开发者_开发问答ithout actually displaying it. I want to display the report, not print it


Set the acView argument to acViewPreview:

docmd.OpenReport "Report1", acViewPreview

Access Help says you can use one of these AcView constants:

acViewDesign 
acViewNormal 
acViewPreview  

acViewNormal is the default and prints the report immediately.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号