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

Using a command button to open a form

Status
Not open for further replies.

mgbeye

Programmer
May 30, 2001
47
US
I am working with two forms. I want to put a button on each form That will close the current form and open the other. The forms use queries to pull the records that can be accessed. Can anyone help??

Thanks :)
 

In the click event of each button put the following.

DoCmd.OpenForm "other_form_name"
DoCmd.Close acForm, "This_form_name", acSaveYes
Terry
------------------------------------
Blessed is the man who, having nothing to say, abstains from giving us worthy evidence of the fact. -George Eliot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top