Hello, this my first time working with Infopath and I have to do some validation for some task...
My Form works with a datasource for receive and send information about employees, for receive info I placed the IDEmployee as query field... with this I have a trouble.... when I don't type anything on the Control (IDEmployee is blank) and clic the "Run Query" button (this is configured as Infopath did) I want to validate that field before to execute, because when it Execute without parameters it returns all the fields from the database... this an example.
Employee ID:___
(In the textbox its assigned to the @IDEmployee query field as it's displayed)
Employee Name:___ (This should show the Employee name after execute the search using the @IDEmployee)
the case is, if the Employee Id TextBox(@IDEmployee) its blank and I click on "Search" butto i need to to fire some message like "Please write an Employee ID." and cancel the execution of the button.
please, if some one have any idea about this case... help me =(
note that the button doesn't have custom code, i run the query or consult by the default execution for that button as the submit case.
thanks