docmd.close not working?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dan2kx
    Contributor
    • Oct 2007
    • 365

    docmd.close not working?

    Hi gang,

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

    i have a userform that seems to be disobeying the

    Code:
    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?!
  • ChipR
    Recognized Expert Top Contributor
    • Jul 2008
    • 1289

    #2
    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.

    Comment

    • Dan2kx
      Contributor
      • Oct 2007
      • 365

      #3
      nope i have the correct form name just dont work

      Code:
      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....?

      Comment

      Working...