A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Validation of time



 
 
Thread Tools Display Modes
  #1  
Old August 17th, 2005, 08:07 PM
LittleDBDude
external usenet poster
 
Posts: n/a
Default Validation of time

I need a validation rule to assure that Start_Time is before End_Time.
  #2  
Old August 17th, 2005, 09:23 PM
Klatuu
external usenet poster
 
Posts: n/a
Default

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  
Old August 18th, 2005, 04:55 AM
Allen Browne
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 01:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.