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

How to POP a Form when closing another one?

Status
Not open for further replies.
May 24, 2005
30
US
I want to start up with the instruction Form for my database, and when close it, I want the "Main switchboard" POP open.
could anyone tell me how to set the code!

thanks in advance!

Jeffery
 
Hi
How about something like (?):
Code:
Private Sub Form_Close()
    DoCmd.OpenForm "Switchboard"
End Sub
 
How are ya jefferyzhong . . . . .
[ol][li]From the database window, on the menubar select [blue]Tools[/blue] - [blue]Startup[/blue].[/li]
[li]In the [blue]Display Form/Page[/blue] comboxbox select your instruction Form and close out.[/li]
[li]In the [blue]Close[/blue] event of the instruction form, copy/paste the following ([blue]you![/blue] substitute proper names in [purple]purple[/purple]):
Code:
[blue]   DoCmd.OpenForm "[purple][b]SwitchboardFormName[/b][/purple]"[/blue]
[/li][/ol]

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top