Unload Form

  • Thread starter Thread starter Unload Form
  • Start date Start date
U

Unload Form

Hi,
I have two forms main1 and main2, in Main 1 one command
button added, when i click button it will go to Main2, but
main 1 still open there, i want close that Main 1 and goto
Main 2 after click the button.
Raashid
 
Hello Raashid

After reading the sarcastic reply you got on your other
posting, I thought that you might appreciate a more
constructive solution: -

The best way to accomplish this is to replace your
existing code with the following code for your Command
Button: -

Docmd.OpenForm "Main2",adViewNormal
Docmd.Close AcForm, "Main1",AcSaveYes

A MESSAGE FOR THE PERSON WHO PENNED THE SARCASTIC REPLY!!!

THIS IS A HIGHLY RESPECTED FORUM USED BY BEGINNERS AND
PROFESSIONALS ALIKE. PLEASE TREAT THIS WORKGROUP, AND THE
USERS, WITH THE UTMOST RESPECT. POSTINGS OF THE NATURE
THAT YOU SUBMITTED ARE NOT ONLY UNAPPRECIATED, BUT ARE
ALSO A WASTE OF EVERBODY'S TIME!!!!

HTH



Tony C.
 
Back
Top