If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Validation of time
I need a validation rule to assure that Start_Time is before End_Time.
|
#2
|
|||
|
|||
Where do you intend to put this rule?
What format are the times in? "LittleDBDude" wrote: I need a validation rule to assure that Start_Time is before End_Time. |
#3
|
|||
|
|||
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]) -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "LittleDBDude" wrote in message ... I need a validation rule to assure that Start_Time is before End_Time. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding Daily Time On Duty In a Query | RRLady | General Discussion | 6 | August 15th, 2005 12:32 AM |
Time in data validation? | Cymro | Worksheet Functions | 1 | June 8th, 2005 03:52 PM |
Please Help! Ref Article ID 210504 | Telobamipada | New Users | 8 | May 9th, 2005 01:09 PM |
Overlapping time in Access | RobertMelton,MOUS | Running & Setting Up Queries | 2 | September 11th, 2004 03:06 AM |
Time of Email | Jason | Outlook Express | 5 | June 22nd, 2004 03:38 PM |