J
Junior
I have a Form1 with a command button that closes the form
Private Sub cmdClose_Click()
On Error GoTo Err_cmdClose_Click
DoCmd.Close
Then in the Form1 Close event I put this code
Private Sub Form_Close()
On Error GoTo Err_HandleErr_Click
DoCmd.OpenForm "frm2", DataMode:=acFormEdit, WindowMode:=acDialog
frm2 opens on top of Form1 -i.e Form1 doesn't close-
what am i doing wrong?
Private Sub cmdClose_Click()
On Error GoTo Err_cmdClose_Click
DoCmd.Close
Then in the Form1 Close event I put this code
Private Sub Form_Close()
On Error GoTo Err_HandleErr_Click
DoCmd.OpenForm "frm2", DataMode:=acFormEdit, WindowMode:=acDialog
frm2 opens on top of Form1 -i.e Form1 doesn't close-
what am i doing wrong?