tonyweis138
Programmer
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 with the case statement (i have tried rewriting it etc.) because if i take it out it works fine. Any ideas
select *, case when codamount > 100 then 'high' else 'low' end as CODTYPE from UPS_MAIN_EXPORT_COPY_TBL where SalesOrderNo = user input
I am attempting to use a query like the following and it keeps giving me read access errors. It has to do with the case statement (i have tried rewriting it etc.) because if i take it out it works fine. Any ideas
select *, case when codamount > 100 then 'high' else 'low' end as CODTYPE from UPS_MAIN_EXPORT_COPY_TBL where SalesOrderNo = user input