N
Night Owl
Hi,
For some reason known only to a select few, a dump file in a database
provides date and time information when a specific incident takes place, in
the following format...
2004-09-01-01.14.00.000000
This relates (obviously) to the date, time and some rubbish that's of no use
to me. I do, however, want to use the date (in this case 2004-09-01) and
the time (01.14.00).
No matter what I do, and irrespective of how I format the date (I haven't
got to the time yet!) I cannot search for records within a specific date
range. I've got a query that uses --- Date: Format(Left([DateTime],10),"dd
mmmm yyyy") --- to provide the date, and I can use an On_Click event for a
command button to open fields using --- [Date] = 01 September 2004 ---, but
when I use --- [Date] Between 01 September 2004 And 01 October 2004 --- all
records are shown. Worryingly, the results from this query return records
where the date is the 10th of every month, i.e. 10 September 2004, 10
October 2004, 10 November 2004, etc. etc.
Where am I going wrong formatting the date? Any guidance would be
appreciated.
TIA,
Pete
For some reason known only to a select few, a dump file in a database
provides date and time information when a specific incident takes place, in
the following format...
2004-09-01-01.14.00.000000
This relates (obviously) to the date, time and some rubbish that's of no use
to me. I do, however, want to use the date (in this case 2004-09-01) and
the time (01.14.00).
No matter what I do, and irrespective of how I format the date (I haven't
got to the time yet!) I cannot search for records within a specific date
range. I've got a query that uses --- Date: Format(Left([DateTime],10),"dd
mmmm yyyy") --- to provide the date, and I can use an On_Click event for a
command button to open fields using --- [Date] = 01 September 2004 ---, but
when I use --- [Date] Between 01 September 2004 And 01 October 2004 --- all
records are shown. Worryingly, the results from this query return records
where the date is the 10th of every month, i.e. 10 September 2004, 10
October 2004, 10 November 2004, etc. etc.
Where am I going wrong formatting the date? Any guidance would be
appreciated.
TIA,
Pete