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

Problem with OnClose event 1

Status
Not open for further replies.

lifter10

MIS
Dec 3, 2003
45
US
I have a form that allows the user to select certain reports. When the user is done viewing the report, I would like that form to open up again. Problem is, when I use the OnClose event in the report to open up the form, the report stays open. I suppose this is fine, but when I try to run that same report again, it closes out my form and doesn't open the report.

How do I get the flow between the report and forms down?

Thanks in advance,

Chris
 
What I sometimes do, is not close the form, but set its visible property to false. Then in the on close event of the report, set it to true again:

[tt]me.visible=false
docmd.openreport "myrpt"...[/tt]

then in the report:
[tt]forms("name of the form").visible=true[/tt]

I then often include some test whether the form is open or not (IsLoaded function from the NorthWind sample database would surely do)

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top