Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DoCmd.Close not closing the form

Status
Not open for further replies.

scottintexas

Programmer
Feb 27, 2006
12
US
When the user clicks on "Cancel" the pop-up form is supposed to close itself. I am using

Code:
Private Sub cmdCancelSurvey_Click()
    DoCmd.Close acForm, "frmNewSurvey"
End Sub
and I have also used the "Me" keyword for the form name. Yesterday this was working (or appeared to be working). No errors no prompts, it just doesn't close the form. I end up having to click on the close control in order to actually close it. I have checked all the properties and can't find anything there that would help.

ScottInTexas
It's probably as hard as it looks.
 
Hi,

Might sound silly, but why not:

DoCmd.Close?


ATB

Darrylle



Never argue with an idiot, he'll bring you down to his level - then beat you with experience.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top