Validate presence of text in field

awd_scot

New member
Local time
Yesterday, 20:06
Joined
Apr 2, 2010
Messages
3
Hi,

hopefully there is just a quick and easy anser to this.

If a have a table with multiple fields but i have two particlaur fields where i want to have a rule that will only allow me to put a value in one field or the other.

I thought i would be able to do this through the table properties but i cant seem to do it.

Any ideas grateful.

Regards,
AD
 
Welcome to AWF :)

It's best you do it on form level. You would use VBA (i.e. code) to set the condition on the BEFORE_UPDATE event of those two text boxes that will be linked to those fields.
 
Many thanks for your info. I have actuall found out how to do it at table level.

([Field1] Is Null) XOR ([Field2] Is Null)

Thanks for your reply.

AD
 
It's not really advisable to do it in your table. You can get greater flexibility on the form.

Glad you found a solution all the same.
 

Users who are viewing this thread

Back
Top Bottom