S
stacie.2410
I have a form that has multiple required fields (4 total). The form has
command buttons for saving and printing. What I need is some code to
prevent saving or printing if a required field is blank.
What I'd like the process for saving/printing to be is as follows:
1.) User clicks Save or Print button
2.) a.) If a required field is left blank, a custom error message displays
informing them that one of the required fields was left blank (if I could
even get it to tell them exactly which field, that would be best), and that
their form cannot be saved or printed until all required fields contain data.
User then clicks "OK" and it returns to the form so they can input their
data.
2.) b.) If all required fields contain data, a custom message displays
saying "Record save successful!"
OR FOR PRINTING
2.) b.) If all required fields contain data, the printer dialog box
displays, and when printed, only the current record displayed in the form is
printed, not the entire record set.
Does anyone have any suggestions?
command buttons for saving and printing. What I need is some code to
prevent saving or printing if a required field is blank.
What I'd like the process for saving/printing to be is as follows:
1.) User clicks Save or Print button
2.) a.) If a required field is left blank, a custom error message displays
informing them that one of the required fields was left blank (if I could
even get it to tell them exactly which field, that would be best), and that
their form cannot be saved or printed until all required fields contain data.
User then clicks "OK" and it returns to the form so they can input their
data.
2.) b.) If all required fields contain data, a custom message displays
saying "Record save successful!"
OR FOR PRINTING
2.) b.) If all required fields contain data, the printer dialog box
displays, and when printed, only the current record displayed in the form is
printed, not the entire record set.
Does anyone have any suggestions?