Opening = Print?

  • Thread starter HowardChr via AccessMonster.com
  • Start date
H

HowardChr via AccessMonster.com

Hmm.. I have a command button on a form have the following code: "DoCmd.
OpenReport "Hazards"". When I press the button, instead of Opening the
report, it prints it! I'm confused... any ideas?
 
H

HowardChr via AccessMonster.com

Nevermind, I forgot the ending. Should have shown: DoCmd.OpenReport
"hazards", acPreview
 
M

Marshall Barton

HowardChr said:
Hmm.. I have a command button on a form have the following code: "DoCmd.
OpenReport "Hazards"". When I press the button, instead of Opening the
report, it prints it! I'm confused... any ideas?


If you want to preview a report, then you need to specify
it.

DoCmd.OpenReport "Hazards", acViewPreview
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top