alblunkproex
IS-IT--Management
If I just want to require entry into these to areas I should do this right? Or am I missing something?
If Me.[Justification] = "" Then
MsgBox "You must Justify this Request."
Cancel = True
ElseIf Me.[Order Summary] = "" Then
MsgBox "You must enter an Order Summary."
Cancel = True
ElseIf Me.[Order Summary] <> "" And Me.[Justification] <>""
Then
DoCmd.Save
DoCmd.Close
End If
Also is there a way to close the form and save automatically using vba?
If Me.[Justification] = "" Then
MsgBox "You must Justify this Request."
Cancel = True
ElseIf Me.[Order Summary] = "" Then
MsgBox "You must enter an Order Summary."
Cancel = True
ElseIf Me.[Order Summary] <> "" And Me.[Justification] <>""
Then
DoCmd.Save
DoCmd.Close
End If
Also is there a way to close the form and save automatically using vba?