J
John Ortt
Hi everyone,
I am having trouble closing forms with a button on the form.
This is specifically happening when the form has no data to display.
I have copied my code below.
Any help will be gratefully recieved.
Thanks in advance,
John.
------------------------------------------------------
Private Sub cmdClose_Click()
DoCmd.Close
End Sub
Function cmdGlobalClose_Click(stDocName As String)
Forms(stDocName).SetFocus
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.Close , , acSaveNo
DoCmd.Maximize
End Function
I am having trouble closing forms with a button on the form.
This is specifically happening when the form has no data to display.
I have copied my code below.
Any help will be gratefully recieved.
Thanks in advance,
John.
------------------------------------------------------
Private Sub cmdClose_Click()
DoCmd.Close
End Sub
Function cmdGlobalClose_Click(stDocName As String)
Forms(stDocName).SetFocus
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.Close , , acSaveNo
DoCmd.Maximize
End Function