Microsoft Access date validation

Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
Reply

Join Date: Feb 2005
Posts: 92
Reputation: NuGG is an unknown quantity at this point 
Solved Threads: 1
NuGG's Avatar
NuGG NuGG is offline Offline
Junior Poster in Training

Microsoft Access date validation

 
0
  #1
Mar 15th, 2005
Im using the validation rule ">=(Now())" to ensure the date entered in the field is today onwards only. However, this rule does not allow todays date to be entered. How can i get it to accept todays date but not previous dates?

This is part of my a-level coursework, so if you can help me it would be great...

cheers.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Microsoft Access date validation

 
0
  #2
Mar 15th, 2005
send me the database?
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 92
Reputation: NuGG is an unknown quantity at this point 
Solved Threads: 1
NuGG's Avatar
NuGG NuGG is offline Offline
Junior Poster in Training

Re: Microsoft Access date validation

 
0
  #3
Mar 15th, 2005
i tryed using ">=Now()-1" it works but now when i run a query for todays date it cannot find anything!!! AAAHHH
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 199
Reputation: Tight_Coder_Ex is an unknown quantity at this point 
Solved Threads: 14
Tight_Coder_Ex's Avatar
Tight_Coder_Ex Tight_Coder_Ex is offline Offline
Junior Poster

Re: Microsoft Access date validation

 
1
  #4
Mar 16th, 2005
In Access, VB & Excel today is 38,427 days since Jan 1, 1970. The time becomes the fracation protion, so at the time I'm writing this response it's 38,427.31. Now at 3:30 pm today 38,427.65 you lanuch you application and try to enter data that was for ealier today it won't work because >=now ().

chang your formula to >= int(now()) and it will work fine.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 92
Reputation: NuGG is an unknown quantity at this point 
Solved Threads: 1
NuGG's Avatar
NuGG NuGG is offline Offline
Junior Poster in Training

Re: Microsoft Access date validation

 
0
  #5
Mar 16th, 2005
Originally Posted by Tight_Coder_Ex

chang your formula to >= int(now()) and it will work fine.
Cheers mate, it works a treat. Ive been struggling with that for ages, thats a great help...
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 12
Reputation: relawson is an unknown quantity at this point 
Solved Threads: 0
relawson relawson is offline Offline
Newbie Poster

Re: Microsoft Access date validation

 
0
  #6
Jun 11th, 2005
Originally Posted by NuGG
Cheers mate, it works a treat. Ive been struggling with that for ages, thats a great help...
Another great "feature" brought to you by Microsoft :-)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Computer Science Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC