C
Chlaris
Dear all,
I'm using Ms SQL as back end and create linked table with ODBC connection.
I write SQL statement like below:
SELECT * FROM tblInvoiceMain WHERE InvoiceDate Between #" &
Format(dteBeginDate, "mm/dd/yyyy") & "# And #" & Format(dteEndDate,
"mm/dd/yyyy") & "#"
After I execute, the query returns wrong result.
How should I write the SQL statement for date parameter ?
Thanks.
Chlaris
I'm using Ms SQL as back end and create linked table with ODBC connection.
I write SQL statement like below:
SELECT * FROM tblInvoiceMain WHERE InvoiceDate Between #" &
Format(dteBeginDate, "mm/dd/yyyy") & "# And #" & Format(dteEndDate,
"mm/dd/yyyy") & "#"
After I execute, the query returns wrong result.
How should I write the SQL statement for date parameter ?
Thanks.
Chlaris