By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,264 Members | 1,100 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,264 IT Pros & Developers. It's quick & easy.

how do i query for a record between two dates using Access 2000

P: n/a
how do i query for a record between two dates using Access 2000?

right now Im doing this:

SELECT *
FROM tblDateTotal
WHERE [tblDateTotal].[fund0cum]<>0
And [tblDateTotal].[da]
Between 1/1/1901
And 10/10/2050;
the dates will be replaced by real dates such as todays date and yesterdays date.

Thanks in advance!
-Brian
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
> Between #1/1/1901# And #10/10/2050#;

Date literals need to be enclosed in hashes.

--
Michael Hopwood
"Paul#" <al**********@yahoo.com> wrote in message
news:c5************************@posting.google.com ...
how do i query for a record between two dates using Access 2000?

right now Im doing this:

SELECT *
FROM tblDateTotal
WHERE [tblDateTotal].[fund0cum]<>0
And [tblDateTotal].[da]
Between 1/1/1901
And 10/10/2050;
the dates will be replaced by real dates such as todays date and yesterdays date.
Thanks in advance!
-Brian

Nov 13 '05 #2

P: n/a
Thanks a bunch Michael.
That worked!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.