Stemdriller
Registered User.
- Local time
- Today, 05:47
- Joined
- May 29, 2008
- Messages
- 187
Hi everyone.
I have a masterform and a subform.
In the subform if the user selects the save and exit button, I am trying to get the subform to close, which it does, but lock the Exit no save button on the MasterForm which is already open.
But I cannot get this button on the MasterForm to lock
So my code thus far is
Private Sub cmdSaveAndExit_Click()
If MsgBox("All changes have been saved", vbOKCancel) = vbOK Then
DoCmd.Close acForm, "frmElectricalIsolation2", acSaveYes
Else
End If
End Sub
Any help??
Regards
Gareth
I have a masterform and a subform.
In the subform if the user selects the save and exit button, I am trying to get the subform to close, which it does, but lock the Exit no save button on the MasterForm which is already open.
But I cannot get this button on the MasterForm to lock
So my code thus far is
Private Sub cmdSaveAndExit_Click()
If MsgBox("All changes have been saved", vbOKCancel) = vbOK Then
DoCmd.Close acForm, "frmElectricalIsolation2", acSaveYes
Else
End If
End Sub
Any help??
Regards
Gareth