I am trying to run the following query and it is telling me that i have an invalid token comma. Any ideas?
select *, CASE WHEN UBILOP = 'SHP' THEN '' ELSE USHACT END AS BILLTO,
CASE WHEN USHVIA = '04' THEN 1 ELSE 0 END AS SAT,
CASE UPAYTM WHEN '05' THEN 2
WHEN '08' THEN 2...
Haha, i'm a doofus. I had IFF in my brain for if and only if and kept using that instead of iif.
Also, because i was using version 12 of the Microsoft Access Driver, i don't think the BDE was able to interpret the error messages correctly so it was just giving me read access violations...
According to this:
http://support.microsoft.com/kb/321266
Neither the if(f) nor the case statements are valid. Does anyone know how to achieve the same goal using only these keywords?
Thanks in advance.
I am writing trying to access data in an Access database via a Delphi 7 program. I have a DSN setup using the Microsoft Access driver which i am using to connect to the Access database.
I am attempting to use a query like the following and it keeps giving me read access errors. It has to do...
Awesome, that is half the battle. Now i just need to find a function to find the position of the '.' in the string in order to know where it should be split. That Mid() works great, though.
I have a customer that is scanning in a value (ex. 12345.00) that needs to be matched to a value in a text file to return a row.
However, the key value in the row would be 12345 without the '.00'. My problem is how to strip off that last few characters in the string.
If i was doing it with...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.