P
pguizze
Hi,
I have a strange behavior with my Access 2003 database in date
calculation in a query.
My query is supposed to give me all the invoices between date X and
date Y from the INVOICE table.
The query is the following:
SELECT INVOICE.ID, INVOICE.DATE
FROM INVOICE
WHERE (((INVOICE.DATE)>=[startdate] And (INVOICE.DATE)<=[enddate]));
Access executes the query and asks me the 2 dates (startdate and
enddate) but the results are wrong. I receive less records than
expected and this only for the year 2005 !! With invoices from 2004, i
got them all. For the year 2005, I have less invoices than correct.
Example: startdate= 1st November 2005, enddate = 21st Nov 2005, i got
all the invoices with the date 1st Nov to 18th Nov and nothing for the
21 ! And if put 22nd Nov as the end date, I got all the invoice from
1st Nov to 21st Nov plus a few of 22nd but not all !
This is really strange and corrupt all my requests related to dates.
I've tried on several other PCs (XP) with exactly the same behavior.
What happen to my DB in 2005 ?
PLEASE HELP !
Patrick
I have a strange behavior with my Access 2003 database in date
calculation in a query.
My query is supposed to give me all the invoices between date X and
date Y from the INVOICE table.
The query is the following:
SELECT INVOICE.ID, INVOICE.DATE
FROM INVOICE
WHERE (((INVOICE.DATE)>=[startdate] And (INVOICE.DATE)<=[enddate]));
Access executes the query and asks me the 2 dates (startdate and
enddate) but the results are wrong. I receive less records than
expected and this only for the year 2005 !! With invoices from 2004, i
got them all. For the year 2005, I have less invoices than correct.
Example: startdate= 1st November 2005, enddate = 21st Nov 2005, i got
all the invoices with the date 1st Nov to 18th Nov and nothing for the
21 ! And if put 22nd Nov as the end date, I got all the invoice from
1st Nov to 21st Nov plus a few of 22nd but not all !
This is really strange and corrupt all my requests related to dates.
I've tried on several other PCs (XP) with exactly the same behavior.
What happen to my DB in 2005 ?
PLEASE HELP !
Patrick