Hello. I hope someone can help me or point me in the right direction to get help. Here is my problem:
I have a form, frmNewWorkOrder that has an option box on it. The option box has two options, "Pending" and "Complete". The values for the options (Pending = 1, Complete = 2) are stored in the Worder table in the WorkOrderStatus field. When a user clicks on "Complete" I want to run code (I have this code already) that validates certain fields on the form before it will let the user go to the next record. And if the user selects the "Pending" option it allows them to leave the record with out validating the fields.
So my question is how do I get the form to run the code to validate the fields only when the "Complete" option is selected?
Thank you for any help.
I have a form, frmNewWorkOrder that has an option box on it. The option box has two options, "Pending" and "Complete". The values for the options (Pending = 1, Complete = 2) are stored in the Worder table in the WorkOrderStatus field. When a user clicks on "Complete" I want to run code (I have this code already) that validates certain fields on the form before it will let the user go to the next record. And if the user selects the "Pending" option it allows them to leave the record with out validating the fields.
So my question is how do I get the form to run the code to validate the fields only when the "Complete" option is selected?
Thank you for any help.