PDA

View Full Version : date problem



eran3185
06-10-2007, 02:45 AM
hey
i have a simple form , based on a simple table.
i build a imple query that take the date between today and the date the user want.
but the query doesn't work :(

mdmackillop
06-10-2007, 03:36 AM
"Today" is a string, not a date
Try
Between Date() And [ENTER DATE]

eran3185
06-10-2007, 03:49 AM
i put there date() but when i put the date : 31/12/07 i get only one record

mdmackillop
06-10-2007, 03:54 AM
That is correct. Why would you expect otherwise, based on your data?

eran3185
06-10-2007, 04:14 AM
i have 3 records - but the query give me only 1

mdmackillop
06-10-2007, 04:18 AM
It gives me two, as expected, using 31/12/07 as the entered date.

eran3185
06-10-2007, 04:24 AM
i have 3 records - but the query give me only 1

mdmackillop
06-10-2007, 04:50 AM
See Post#6

eran3185
06-10-2007, 05:34 AM
i put 31/12/07 but it's not correct - i didnt get all the records

mdmackillop
06-10-2007, 05:53 AM
You should get three records.
Write down all the dates from your table; look at today's date (10/6/07) and the "Entered Date" (31/12/07) and tick off all dates which lie between them.

Bob Phillips
06-10-2007, 02:49 PM
i put 31/12/07 but it's not correct - i didnt get all the records

You get 5/10, 5/11 and 11/06. What did you expect to get?