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

docmd.close not working?

P: 365
Hi gang,

i have yet another curious question for the panel...

i have a userform that seems to be disobeying the

Expand|Select|Wrap|Line Numbers
  1. docmd.close acform, "FormName"
i give it, either on a button or in a function sub/ the code "runs" without error but the form sits there defiantly...

anyone got any ideas?!
Jan 14 '09 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 1,287
I do this all the time when I copy a form and forget to change the name of the form in the code.
Just the first thing that comes to mind.
Jan 14 '09 #2

P: 365
nope i have the correct form name just dont work

Expand|Select|Wrap|Line Numbers
  1. DoCmd.Close acForm, Screen.ActiveForm.Name, acSaveYes
just tried the above and that works, but im not sure i like that? i cant understand whats up with it....?
Jan 14 '09 #3

Post your reply

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