L
.Len B
Form_BeforeUpdate(Cancel As Integer)
If Not chkOk2Save Then
Cancel = True
MsgBox "Ok to save is not checked"
Else
MsgBox "Saving"End If
I have tried several combinations of the >>>> line.
Me.Parent.Close
DoCmd.Close
DoCmd.Close acForm, Forms("frmEnterNotes")
All fail with different errors.
What is the correct way to do this?
Or do I have to close from the parent?
If Not chkOk2Save Then
Cancel = True
MsgBox "Ok to save is not checked"
Else
MsgBox "Saving"End If
I have tried several combinations of the >>>> line.
Me.Parent.Close
DoCmd.Close
DoCmd.Close acForm, Forms("frmEnterNotes")
All fail with different errors.
What is the correct way to do this?
Or do I have to close from the parent?