How do I preview a report

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a command button that triggers a report. I have the following code

DoCmd.OpenReport "Completion

The problem is that the report wants to print on my printer. I would like to have it so that I can preview it first. How do I do this? I've tried messing around with the acView stuff, but VBA keeps either blowing up at me or I get an error when running the program

Thanks in advance

Kyle
 
DoCmd.OpenReport "Completion",acViewPreview

--
Ken Snell
<MS ACCESS MVP>

Kyle said:
I have a command button that triggers a report. I have the following code:

DoCmd.OpenReport "Completion"

The problem is that the report wants to print on my printer. I would like
to have it so that I can preview it first. How do I do this? I've tried
messing around with the acView stuff, but VBA keeps either blowing up at me
or I get an error when running the program.
 
Back
Top