I'm really new to MS ACCESS.
I'm trying to build an SQL query string to run from Delphi and am having problems making it run.
This is the string I build
'Delete from JOB where (("JOB_ID"='+string(tsJob.Cell[6,x])+'))';
which ends up looking like this
Delete from JOB where (("JOB_ID"=12))
now JOB_ID is an AUTONUMBER in JOB
I keep getting "Data type mismatch in criteria expression" when I run the query.
Any help is appreciated.
I'm trying to build an SQL query string to run from Delphi and am having problems making it run.
This is the string I build
'Delete from JOB where (("JOB_ID"='+string(tsJob.Cell[6,x])+'))';
which ends up looking like this
Delete from JOB where (("JOB_ID"=12))
now JOB_ID is an AUTONUMBER in JOB
I keep getting "Data type mismatch in criteria expression" when I run the query.
Any help is appreciated.