Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing a report problem

Status
Not open for further replies.

MrMajik

IS-IT--Management
Apr 2, 2002
267
Running Office 2000 Pro on Win NT 4:
Database: ADODB

I can print a report if I go directly to the report, open it and click the printer icon.

Here is where the problem exists...I have VB code under a button that populates an answer table and the report looks at the answer table for data.

When I try to print the report using code it will not print the entire report. It misses the last few entries. However, if I step through the code the report prints fine.

I tried adding a delay using the timer function with the Do Default statement but it did not work.

Here is the command I am using to print the report:
DoCmd.OpenReport "History"

Any ideas?
 
try DoCmd.OpenReport "History", PrintMode

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top