new to db, cant figure query critera for between dates

sumhungl0

Registered User.
Local time
Today, 08:34
Joined
Nov 16, 2007
Messages
14
im tryin to get this query to get data from current weeks inputs. ive googled and tried everything with no luck so far. so here i am. can someone tell me what im doing wrong? keep in mind i dont know what im doing.....

heres what i put for criteria under my date column.

Between Date() And Date()-7

doesnt work.... anybody? thanks in advance...
 
What you have should work. What version of Access are you using? Are you sure you have records that meet that criteria?
 
im using 03 and i have changed the number from a little to alot and i still cant get any results. i know that the criteria would find the range of records i have, about a months worth.
 
just tried this with no results.....

<=Date()-3
and
>=Date()-3
 
Do you have any other criteria specified that might be eliminating records? Your field *is* a DateTime field, right? Do you use USA format dates or one of the international date formats?
 
I use USA dates so my test just works. Yours is different so you may need to make some adjustments recommended in this link to MVP Allen Borwne's site.
 
i only put that format for the input form, so does that mean the table doesnt use it as just a date?
 
Unfortunately, when you have your Windows Regional Date Setting to other than USA, Access can get the compare of dates incorrect.
 
i got it

thank you very much for all the help. heres what my problem was....

my table had the date format as text, so i changed it to medium date format and put my query back to Between Date() And Date()-7 and everything works great.

thanks again everybody.. :)
i feel like suck an idiot..
 
I'll bet that will not trip you up again. There is so much more to learn from your mistakes than your successes. Glad you got it sorted.
 

Users who are viewing this thread

Back
Top Bottom