Y
Yosi
Hi,
I have access database with date column and number of rows with same date
but with different time,
I'm trying to view names from database that has the month of today date,
My query is:
SELECT Table1.*
FROM Table1
WHERE (((Table1.name)='myname') AND ((Year(Date()))=Year([Table1].[Date1]))
AND ((Month(Date()))=Month([Table1].[Date1])));
But i got only the rows that its date appears only one time,
For example, this is my table:
| name | date |
time |
Tony 05/07/08 12:10:00
Mike 10/08/08 13:15:00
Tony 10/08/08 12:10:00
Alice 11/08/08 22:23:00
Jack 11/08/08 12:10:00
Edi 13/08/08 16:45:00
Mike 10/08/08 19:15:00
Tony 17/08/08 12:35:00
If the date is 25/08/08 and run the query above i got this results:
| name | date |
time |
Edi 13/08/08 16:45:00
Tony 17/08/08 12:35:00
Any idea why ?
Thanks,
Yosi.
I have access database with date column and number of rows with same date
but with different time,
I'm trying to view names from database that has the month of today date,
My query is:
SELECT Table1.*
FROM Table1
WHERE (((Table1.name)='myname') AND ((Year(Date()))=Year([Table1].[Date1]))
AND ((Month(Date()))=Month([Table1].[Date1])));
But i got only the rows that its date appears only one time,
For example, this is my table:
| name | date |
time |
Tony 05/07/08 12:10:00
Mike 10/08/08 13:15:00
Tony 10/08/08 12:10:00
Alice 11/08/08 22:23:00
Jack 11/08/08 12:10:00
Edi 13/08/08 16:45:00
Mike 10/08/08 19:15:00
Tony 17/08/08 12:35:00
If the date is 25/08/08 and run the query above i got this results:
| name | date |
time |
Edi 13/08/08 16:45:00
Tony 17/08/08 12:35:00
Any idea why ?
Thanks,
Yosi.