M
mikeg
I want to prevent a query from running if a field is blank or contains an
invalid value. In the Run Query button properties, I created a Rule that
fires when the field value is blank or invalid. Then I added an Action to
send an error msg. This part is working fine.
However, after clicking OK on the msg dialog, InfoPath goes ahead and runs
the query anyway! I don't see any Action available to stop the query from
continuing other than "Open a new form to fill out" or "Close the form" which
are both overkill.
Note: I'm using the Rules and Custom Code Action in the query button for
some code that calls a stored procedure. It's working except that if the
search criteria is invalid my error msg will display, but then InfoPath
continues to run the query which I do not want.
invalid value. In the Run Query button properties, I created a Rule that
fires when the field value is blank or invalid. Then I added an Action to
send an error msg. This part is working fine.
However, after clicking OK on the msg dialog, InfoPath goes ahead and runs
the query anyway! I don't see any Action available to stop the query from
continuing other than "Open a new form to fill out" or "Close the form" which
are both overkill.
Note: I'm using the Rules and Custom Code Action in the query button for
some code that calls a stored procedure. It's working except that if the
search criteria is invalid my error msg will display, but then InfoPath
continues to run the query which I do not want.