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

Make my report visible 1

Status
Not open for further replies.

AlanBornat

Programmer
Jun 5, 2005
2
GB
When I preview a report using 'DoCmd.OpenReport "DiarySummary", acViewPreview', the report hides behind another form that I have open. How can I bring it to the front?
 
I'm guessing the form is opened in dialoge mode. One approach, would be to not do so. Another could by to try hiding the form while the report is open (me.visible = false), then unhide it again, in the reporst on close event (forms("frmFormName").visible = true), for the latter, you'll probably want to examine the isloaded property of the allforms collection too (or the isloaded function in the Northwind sample database).

Roy-Vidar
 
Thanks Roy - the form that opens the report was in dialogue mode, but I immediately closed that form and the report was still hidden behind another form that wasn't in dialogue mode. Even so, your first tip worked!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top