Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm using the following query to download to Excel
Error says it doesn't expect the keyword Between in the IIf statement. Works fine without the IIf. Any suggestions? vQuery = "SELECT PSPSP100.PARNT, PSPSP100.CSEQN, PSPSP100.PSPCL, PSPSP100.CHILD, PSPSP100.PSCCL, MSPMP100.PRDNO, MSPMP100.DESCP, IIf(PSPSP100.PSPCL Between 'AA'And 'YM',MSPMP100.S2APH='C10301A', MSPMP100.S2APH Like '*') FROM-----" --- Message posted from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ODBC Query | Excel Worksheet Functions | |||
ODBC query oddity | Excel Discussion (Misc queries) | |||
ODBC query problem | Excel Discussion (Misc queries) | |||
Using SUM function in MS QUERY with ODBC | Excel Discussion (Misc queries) | |||
ODBC database query | Excel Discussion (Misc queries) |