Connecting Tech Pros Worldwide Help | Site Map

docmd.close not working?

Needs Regular Fix
 
Join Date: Oct 2007
Location: Hull,UK
Posts: 284
#1: Jan 14 '09
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?!
Expert
 
Join Date: Jul 2008
Location: Maryland
Posts: 1,158
#2: Jan 14 '09

re: docmd.close not working?


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.
Needs Regular Fix
 
Join Date: Oct 2007
Location: Hull,UK
Posts: 284
#3: Jan 14 '09

re: docmd.close not working?


nope i have the correct form name just dont work

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