Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Validation rule based on a query

Status
Not open for further replies.

ejoffe

Programmer
Jul 4, 2007
5
IL
Hey,

I have a form with a few fields.
The form is designed for entering patients' lab results into a table.
In another table (tb_parameters) I have fields for parameter, unit_type (mg, dL etc.) min (minimal acceptable value) and max.
I use a combo box based on this table in order to chose the appropriate parameter.
My problem is - I wish to have some validation rules based on the min and max values of each parameters (so that the user won't enter unreasonable values by mistake)

I've designed a query which takes the entered parameter from the form and returnes its unit, min and max, but when use it as the source for the validation rule I get an error (maybe because the validation rule doesn't run the query).
Any advice ?
 
Hello

You can set your validation rule in the table or set the rule in the combo control in the properties window.

Regards
Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top