Hi, we have a query running out of Navision into access, this query was setup by someone on site who is presently on holiday....
A shortcut was taken to fix one issue but it has caused another, so in his absence i'm trying to fix the problem.
We have a field being cut down to 3 characters using:
The problem is if that field begins with "X" we need it to NOT be cut down to 3 characters, using an IIF code I could have fixed this, but I understand the SQL for ODBC will not accept IIF code (after trying for a couple of hours ).
Can anyone please suggest an alternative option (I tried some "CASE, THEN, ELSE" code but that didn't work either (might have just been me though). I am ok at databases i'm not so great at SQL.
Thank you.
A shortcut was taken to fix one issue but it has caused another, so in his absence i'm trying to fix the problem.
We have a field being cut down to 3 characters using:
Code:
Left([table].[field],3) as ING
Can anyone please suggest an alternative option (I tried some "CASE, THEN, ELSE" code but that didn't work either (might have just been me though). I am ok at databases i'm not so great at SQL.
Thank you.