I'm creating a work order submission form where I want the person submitting to have to fill out 6 fields before they can submit the saved record. I need a button that will check each of those fields and if one is isn't filled in, display a message box saying which field is missing. Then, if all the fields are filled in, the button will save the record, close the form, and tell them they have submitted the work order.
I have no idea where to start other than
Dim MyReply
MyReply = MsgBox("Do you wish to submit this Work Order?", vbYesNo)
If MyReply = vbYes Then
DoCmd.RunCommand acCmdSaveRecord
If MyReply = vbNo Then
Exit Sub
End If
Any help would be greatly appreciated! Thank you!
I have no idea where to start other than
Dim MyReply
MyReply = MsgBox("Do you wish to submit this Work Order?", vbYesNo)
If MyReply = vbYes Then
DoCmd.RunCommand acCmdSaveRecord
If MyReply = vbNo Then
Exit Sub
End If
Any help would be greatly appreciated! Thank you!