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

Hiding a Form

Status
Not open for further replies.

lemmiwinks30

Programmer
Jul 19, 2004
13
0
0
US
Hello,

I have a form (call it form1) with a button on it that opens a report. After the report opens, I'd like the user to be able to close the report and then form1 would be lying underneath. If I leave out DoCmd.close, the report opens under the form. I wish I could just use VB form1.hide. Is there any way around this?

Thanks!
 
[tt]me.visible=false[/tt]

- when opening the report, then in the reports on close

[tt]forms("formname").visible=true[/tt]

- perhaps also add a test whether the form is open, like the isloaded function in the Northwind sample database?

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top