Validation of time

  • Thread starter Thread starter Guest
  • Start date Start date
1. Open the table that contains these fields in design view.

2. Open the Properties box (View menu).

3. In the Properties box, beside the Validation Rule, enter:
[Start_Time] < [End_Time]

Note that the validation rule in the properties box is for the record (the
rule on the table.) That's not the same as the Validation Rule in the lower
pane, which applies to one field only, and is therefore not suitable for
comparing fields.

In some versions of Access, you need to specifically allow nulls if you need
that, i.e.:
([Start_Time] Is Null) OR ([End_Time] Is Null) OR ([Start_Time] <
[End_Time])
 

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

Back
Top