Guys,
I had a query running successfully on a Pervasive database system but have imported the table to Access and need to get the following query working:
SELECT RM20101.DOCNUMBR, RM20101.DOCDATE, RM20101.TRXDSCRN, RM20101.CURTRXAM, RM20101.GLPOSTDT, RM20101.AGNGBUKT, RM20101.CSPORNBR, MC00100.XCHGRATE, RM40401.DOCABREV FROM (RM20101 INNER JOIN RM40401 ON RM20101.RMDTYPAL = RM40401.RMDTYPAL) INNER JOIN MC00100 ON RM20101.DOCDATE Between MC00100.EXCHDATE And MC00100.EXPNDATE WHERE RM20101.CUSTNMBR = 'ORBUS' AND MC00100.EXGTBLID='USD TBL' ORDER BY RM20101.DOCNUMBR
When I run this query (from ASP), I get the following error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Between operator without And in query expression 'RM20101.DOCDATE Between MC00100.EXCHDATE'.
However, there is clearly a "Between" and an "And" in the query. Maybe I need brackets. Can anyone help me out??
Mise Le Meas,
Mighty
I had a query running successfully on a Pervasive database system but have imported the table to Access and need to get the following query working:
SELECT RM20101.DOCNUMBR, RM20101.DOCDATE, RM20101.TRXDSCRN, RM20101.CURTRXAM, RM20101.GLPOSTDT, RM20101.AGNGBUKT, RM20101.CSPORNBR, MC00100.XCHGRATE, RM40401.DOCABREV FROM (RM20101 INNER JOIN RM40401 ON RM20101.RMDTYPAL = RM40401.RMDTYPAL) INNER JOIN MC00100 ON RM20101.DOCDATE Between MC00100.EXCHDATE And MC00100.EXPNDATE WHERE RM20101.CUSTNMBR = 'ORBUS' AND MC00100.EXGTBLID='USD TBL' ORDER BY RM20101.DOCNUMBR
When I run this query (from ASP), I get the following error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Between operator without And in query expression 'RM20101.DOCDATE Between MC00100.EXCHDATE'.
However, there is clearly a "Between" and an "And" in the query. Maybe I need brackets. Can anyone help me out??
Mise Le Meas,
Mighty