954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Microsoft Access date validation

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.

NuGG
Junior Poster
111 posts since Feb 2005
Reputation Points: 10
Solved Threads: 1
 

send me the database?

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

i tryed using ">=Now()-1" it works but now when i run a query for todays date it cannot find anything!!! AAAHHH

NuGG
Junior Poster
111 posts since Feb 2005
Reputation Points: 10
Solved Threads: 1
 

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.

Tight_Coder_Ex
Posting Whiz in Training
215 posts since Feb 2005
Reputation Points: 47
Solved Threads: 17
 
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...

NuGG
Junior Poster
111 posts since Feb 2005
Reputation Points: 10
Solved Threads: 1
 
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 :-)

relawson
Newbie Poster
12 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You