I am trying to put a "close" button on a subform using the following code:
Private Sub Command11_Click()
DoCmd.Close acForm, "SESSIONS_SOURCES", acSavePrompt
End Sub
However, this does not effectively close the subform, and when I tried to use the "Close Form" button in the wizard it closes the main form rather than just the subform.
Any help here would be appreciated.
Private Sub Command11_Click()
DoCmd.Close acForm, "SESSIONS_SOURCES", acSavePrompt
End Sub
However, this does not effectively close the subform, and when I tried to use the "Close Form" button in the wizard it closes the main form rather than just the subform.
Any help here would be appreciated.