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?
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?