dfauber
Programmer
- Sep 25, 2002
- 2
I receive the following error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[IBM][Client Access Express ODBC Driver (32-bit)][DB2/400 SQL]SQL0104 - Token = was not valid. Valid tokens: ) ,.
when using this sql statement:
SELECT * FROM wtecdlib.wqesmpllog WHERE IIF(PDTerm = '6 Months', IIF(EntryDate < '9/25/2002' - 180, DteRvd < ('9/25/2002' - 180) or DteRvd is null,0), IIF(EntryDate < '9/25/2002' - 365, DteRvd < ('9/25/2002' - 365) or DteRvd is null),0)
this statement is generated through asp/vbscript code. I have tried several different things in place of the '=' and received the same error on them all. This statement was taken directly out of an Access DB and just made to work in asp. Is there something I am missing, why doesn't this work???? Can someone please help me? Thanks in advance!
Nathan
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[IBM][Client Access Express ODBC Driver (32-bit)][DB2/400 SQL]SQL0104 - Token = was not valid. Valid tokens: ) ,.
when using this sql statement:
SELECT * FROM wtecdlib.wqesmpllog WHERE IIF(PDTerm = '6 Months', IIF(EntryDate < '9/25/2002' - 180, DteRvd < ('9/25/2002' - 180) or DteRvd is null,0), IIF(EntryDate < '9/25/2002' - 365, DteRvd < ('9/25/2002' - 365) or DteRvd is null),0)
this statement is generated through asp/vbscript code. I have tried several different things in place of the '=' and received the same error on them all. This statement was taken directly out of an Access DB and just made to work in asp. Is there something I am missing, why doesn't this work???? Can someone please help me? Thanks in advance!
Nathan