I have a form which is being used to collect data, but rather than being submitted, I am using c# code to run some SQL to update a database (the form is only being used in the infopath client)
I have added data validation rules to the form, and prior to running the SQL, I would like to ensure that the data in the form has passed all validation rules.
Can someone tell me how to validate a form using code?
I am sure this is really simple, but so far, I haven't been able to find what I am looking for.
Thanks in advance for any assistance!!