simeon_rose
Registered User.
- Local time
- Today, 23:45
- Joined
- Nov 4, 2000
- Messages
- 34
i posted a topic on how to open one form whilst closing another not long ago. i received an answer saying:
Put this code on the OnClick event of the Command Button...
DoCmd.OpenForm "Nameofformyouwanttoopen"
DoCmd.Close, acForm, "Nameofformyouwanttoclose"
The problem is, I'm not sure where to put this code. My guess is that I should add it to the code behind a wizard-created "openform" button. However, not being able to program in VB, i seem to continuously mess up the structure of the entire code everytime I try to ammend the code.
Could someone please give me an explanation of how I can create a button that does what I want in a way that I can understand...I thank you if you can
Put this code on the OnClick event of the Command Button...
DoCmd.OpenForm "Nameofformyouwanttoopen"
DoCmd.Close, acForm, "Nameofformyouwanttoclose"
The problem is, I'm not sure where to put this code. My guess is that I should add it to the code behind a wizard-created "openform" button. However, not being able to program in VB, i seem to continuously mess up the structure of the entire code everytime I try to ammend the code.
Could someone please give me an explanation of how I can create a button that does what I want in a way that I can understand...I thank you if you can