ScorpioMCN
Programmer
I've searched throughout this site and googled also and have not found any posts that resolves my issue.
I have this sql in a pass-through query in Access 2010...I need the sql to use the date the user enters in the Access form...I get this error however:
ODBC--call failed.
[Teradata][ODBC Teradata Driver][Teradata Database] A character string failed conversion to a numeric value. (#-3535)
Can someone please help? I'm at my wit's end. Thanks!
SELECT
*
FROM
invoice_detail
WHERE receipt_date = '" & Format$([Forms]![TEST_Export Excel files]![txtEnterDate], "yyyy-mm-dd") & "'
--These all work:
--WHERE receipt_date = current_date
--WHERE receipt_date = '2012-04-16'
--WHERE receipt_date = 1120416
--WHERE receipt_date between 1120416 and 1120417
--WHERE receipt_date >= '2012-04-16' AND receipt_Date <= '2012-04-17'
--These do not work:
--WHERE receipt_date = [Forms]![TEST_Export Excel files]![txtEnterDate]
;
ps: I also need it to calculate the weekday of the form's date (eg 4/12/2012 = 5) - I have not found a weekday function that works in the above sql.
I have this sql in a pass-through query in Access 2010...I need the sql to use the date the user enters in the Access form...I get this error however:
ODBC--call failed.
[Teradata][ODBC Teradata Driver][Teradata Database] A character string failed conversion to a numeric value. (#-3535)
Can someone please help? I'm at my wit's end. Thanks!
SELECT
*
FROM
invoice_detail
WHERE receipt_date = '" & Format$([Forms]![TEST_Export Excel files]![txtEnterDate], "yyyy-mm-dd") & "'
--These all work:
--WHERE receipt_date = current_date
--WHERE receipt_date = '2012-04-16'
--WHERE receipt_date = 1120416
--WHERE receipt_date between 1120416 and 1120417
--WHERE receipt_date >= '2012-04-16' AND receipt_Date <= '2012-04-17'
--These do not work:
--WHERE receipt_date = [Forms]![TEST_Export Excel files]![txtEnterDate]
;
ps: I also need it to calculate the weekday of the form's date (eg 4/12/2012 = 5) - I have not found a weekday function that works in the above sql.