Reports don't display but go directly to printer

  • Thread starter Thread starter Bill McCarthy
  • Start date Start date
B

Bill McCarthy

I sure would appreciate some advice on this problem. I've asked before but
got no response and I'm getting desperate.

I have had this problem happen twice now.

I create a report that works successfully. I then modify it in such a way
that I need some code in the OPEN event. Once I do that, the report goes
directly to the printer and I can't get it to display on the screen first.
Even if I remove the code from the event processing, it continue to do this.


Can anyone tell me what I am doing wrong? Thanks.
 
Check your help in Access under "OpenReport Action" but try this code:

dim strID as yourreportname
DoCmd.OpenReport stDocName, acViewPreview, , strID

HTH

Coleen
 
Back
Top