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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preview report problem (minimizes the application)

Status
Not open for further replies.

franksirvent

Programmer
Mar 8, 2002
358
GB
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

 
Hi,
Do you have any code behind OnOpen/OnLoad property of the Report?
Probably you have wrote a code
"DoCmd.Minimize" by mistake.

ZmrAbdulla
 
thanks for input.

I have checked all code correctly...there is no docmd.minimize code anywhere found.
If that was the case, it would minimize the preview EVERYTIME,not just the first time.

That´s what is so strange.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top