By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,706 Members | 1,239 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,706 IT Pros & Developers. It's quick & easy.

Closing specific forms

P: 32
I have a dumb question for access 2002 regarding closing forms.

In a FORM1 I have a LISTBOX1. When I click on listbox1 I want to open another FORM2 and then close FORM1-which contains listbox-.

For some reason my DOcmd.Close command closes Form2 instead of Form1.

Why? How can I specify which form to close?
Jun 12 '07 #1
Share this Question
Share on Google+
3 Replies

BradHodge
Expert 100+
P: 166
You could say...

DoCmd.OpenForm "Form2"
DoCmd.Close acForm, "Form1"

That should work.

Brad.
Jun 12 '07 #2

P: 32
I made changes and it worked, Thanks
Jun 12 '07 #3

BradHodge
Expert 100+
P: 166
Glad it's working.

Brad.
Jun 12 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.