Validation Rules

P

Pierre de Beer

Hi



I set the "Validation Rules" and "Validation Text" on a form and it works
fine if data is entered into the field. If the Tab or Enter key is pressed
on the empty field, the validation rules are ignored. These fields are
mandatory and I can use the lost focus to write code but using Validation
Rules should be faster and more efficient.



Please Help



Pierre
 
R

Rick Brandt

Pierre said:
Hi



I set the "Validation Rules" and "Validation Text" on a form and it
works fine if data is entered into the field. If the Tab or Enter key
is pressed on the empty field, the validation rules are ignored.
These fields are mandatory and I can use the lost focus to write code
but using Validation Rules should be faster and more efficient.

Yep. Validation rules only validate data that is actually entered. They do not
force entry. For that you should set the field to Required = Yes in the Table.
Then they will not be able to save the record unless they make an entry.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top