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

acHidden withe report

Status
Not open for further replies.

tania20

Programmer
Oct 30, 2006
148
AU
Hi, Does anyone have any idea how to implement the same functionality as acHidden in access 2000 on OpenReport?. I have tried visible but this occurs after opening the report so I get screen flash effect-I need to prevent the screen from even appearing.

Cheers

Tania
 
Hi Tania

Can you not implement :

DoCmd.OpenReport "ReportName", acViewPreview, , , acHidden



Hope this helps!

Regards

BuilderSpec
 
Thats what I was trying but it does not allow the WindowMode agrument as it is only Access 2000 - only allows for OpenForm...
 
Let's see if their is a different way..

Why do you want to open the report hidden ?

Hope this helps!

Regards

BuilderSpec
 
When I open my custom switchboard form there is code on the load event that cycles through all the reports to set the page size to A4 - but this code requires the reports to be opened and closed. This works fine but creates a flashing effect as the reports are opened and closed.
 
Yay, I've solved the problem-thought I would post the solution for anyone else who may need it:

DoCmd.Echo False
DoCmd.OpenReport rptName, acViewDesign
Reports(rptName).Painting = False
Set rpt = Reports(rptName)

...other code here

DoCmd.Close acReport, rptName, acSaveYes
DoCmd.Echo True

Tania
 
Yay

Never even seen the echo command before..very useful !

Hope this helps!

Regards

BuilderSpec
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top