franksirvent
Programmer
Hi there
My application has a problem when it open a report on preview for the first time.
For some "obscure" reason, the very first time I press the PRINT button, the access aplication minimizes itself, leaving only the Access icon on the taskbar.
When I press the icon on the taskbar, the report is there, on preview mode.
If I close the report, then it goes back to the program as normal.
The amazing thing is that this problem ONLY happens the first time. If I try to preview any other report, it all looks fine, the program doesn´t minimize itself.
I am opening the report as follows:
DoCmd.OpenReport "Print Quote", acPreview, "", "[Quotes_QuoteID]=[Forms]![Quotes]![QuoteID]"
On the PRINT_OPEN, I have a docmd.maximize which works fine, but only 2nd, 3rd, etc times. Never works the first time.
Any ideas ????
thanks
My application has a problem when it open a report on preview for the first time.
For some "obscure" reason, the very first time I press the PRINT button, the access aplication minimizes itself, leaving only the Access icon on the taskbar.
When I press the icon on the taskbar, the report is there, on preview mode.
If I close the report, then it goes back to the program as normal.
The amazing thing is that this problem ONLY happens the first time. If I try to preview any other report, it all looks fine, the program doesn´t minimize itself.
I am opening the report as follows:
DoCmd.OpenReport "Print Quote", acPreview, "", "[Quotes_QuoteID]=[Forms]![Quotes]![QuoteID]"
On the PRINT_OPEN, I have a docmd.maximize which works fine, but only 2nd, 3rd, etc times. Never works the first time.
Any ideas ????
thanks