I am unsure why this command is not working.
Even when I use this line, it does nothing...
Code:DoCmd.DoCmd.Close acForm, Me.Name
I am unsure why this command is not working.
Even when I use this line, it does nothing...
Code:DoCmd.DoCmd.Close acForm, Me.Name
If you are trying to close the form you currently have focus on
DoCmd.Close
Is that code in a button Click event? Is there other code in that procedure? Does it execute?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
It is a click event, but nothing happens. I put a msgbox in it, nothing.
Does the button Click event property have [Event Procedure] in it?
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Yes, that was the first thing I checked.
Hmmm... weird. Suddenly now it works. Not sure if it just required a database restart or what. Working now.