Connecting Tech Pros Worldwide
 
 
sign in | join about | help | sitemap
[ http://bytes.com/adLoader.php?parent=database
Thread: Date queries
View Single Post
neosam's Avatar
Member - 47 Posts
#5: Re: Date queries

Quote:
Originally Posted by youmike
Since Access is looking for an SQL string clause without the "WHERE", I think you should try something like:

Expand|Select|Wrap|Line Numbers
"DateFieldInQuery = #" & Date() - 3 & "#"


"DateFieldInQuery" is whatever is the name that you have assigned in the query to the date you want to test. The # before and after tells Access that the number returned by Date() - 3 should be teated as a date.


But would this not be a query? how do i insert this in the where clause in the code?

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,231 network members.
Post your question now . . .
It's fast and it's free


You are viewing a mobilized version of this site...
View original page here

How do you rate mobile version of this page?

Mobilized by Mowser Mowser