madamvegas
New member
- Local time
- Yesterday, 19:06
- Joined
- Apr 17, 2012
- Messages
- 3
We are moving our Access dbs into SQL and trying to copy the SQL code in the queries into Access and finding there are some differences. There is one that I am stumped on. Here is part of the code.
SELECT Data_Collection_Template.[Item Number (Catalog)], Data_Collection_Template.[NAED / UPC Number], EZView.Price_Column_Code1,
IIf(Len([Price1])> 0,Round([Price1],2),0) AS EZViewPrice1
FROM Data_Collection_Template LEFT JOIN EZView
ON Data_Collection_Template.[NAED / UPC Number] = EZView.UPC
There are mulitples iif(len......) statements but just showing one. I get an error message that says.
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near '>'.
I don't see what the error is near '>'. Been trying different things but nothing working. Any suggestions would be greatly appreciated.
SELECT Data_Collection_Template.[Item Number (Catalog)], Data_Collection_Template.[NAED / UPC Number], EZView.Price_Column_Code1,
IIf(Len([Price1])> 0,Round([Price1],2),0) AS EZViewPrice1
FROM Data_Collection_Template LEFT JOIN EZView
ON Data_Collection_Template.[NAED / UPC Number] = EZView.UPC
There are mulitples iif(len......) statements but just showing one. I get an error message that says.
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near '>'.
I don't see what the error is near '>'. Been trying different things but nothing working. Any suggestions would be greatly appreciated.