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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table validation rule

Status
Not open for further replies.

bjb123

MIS
Nov 14, 2006
37
US
I have a customeraddress table that has a [customerID] and a [default] yes/no field.

A customer must have 1 and only 1 default address. But a customer may have zero to many non-default address. Seems like a good place for a table level validation rule. But I can't figure out how to get it to work with a dcount, or dlookup.

I could always write code to validate this on the form, but I would really like to know how to write it in the table if it is possible.
 
The help about ValidationRule clearly states that you can't use any domain aggregate function in a table level validation rule.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
doh! I was on that page most of the morning but somehow overlooked that sentence.

Thanks. That actually saves me a lot of additional wasted time trying to figure this out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top