S
Stapes
Hi
I have on my input forms two input fields defined as Format:Short
Date.
The user sees __/__/____ when beginning to type.
I put in 01/12/2006 and 19/02/2007 (meaning 1st December 2006 and 19th
February 2007)
Then my sql looks for data matching the criteria
WHERE (((TM_Invoice.InvoiceDate) BETWEEN #" & TXT_StartDate & "# AND
#" & TXT_ToDate & "#))
which it translates as:
WHERE (((TM_Invoice.InvoiceDate) BETWEEN #12/01/2006# AND
#19/02/2007#))
Notice that it has transposed the month and the day, but only on the
first date. I guess the second would produce an illegal date
transposed in this way.
How do I get round this?
Stapes
I have on my input forms two input fields defined as Format:Short
Date.
The user sees __/__/____ when beginning to type.
I put in 01/12/2006 and 19/02/2007 (meaning 1st December 2006 and 19th
February 2007)
Then my sql looks for data matching the criteria
WHERE (((TM_Invoice.InvoiceDate) BETWEEN #" & TXT_StartDate & "# AND
#" & TXT_ToDate & "#))
which it translates as:
WHERE (((TM_Invoice.InvoiceDate) BETWEEN #12/01/2006# AND
#19/02/2007#))
Notice that it has transposed the month and the day, but only on the
first date. I guess the second would produce an illegal date
transposed in this way.
How do I get round this?
Stapes