Report preview can't stay?

G

G Lam

Hi, I want to preview a report before it gets printed. I wrote the following
codes, but I only saw the screen just flashed once then the form closed. The
report preview does not stay on the screen. The code just keep on going. How
can I keep the preview on screen?
Thank you.
Gary
Click button sub:

DoCmd.OpenReport "rptQVSPList", acViewPreview, "qryQVSPLIst",
WhereCondition:="SlsOrdNbr = " & SORRdNbr
DoCmd.Close
 

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