LVL 1 question
I have two lines of code very similar 1 works fine and later changing only the operator causes it to fail.
//working
sql.add('update items set cost = 5 where contract = ''''');
but reverse it with
('update items set cost = 5 where contract != ''''');
Syntax error (missing operator)in query expression 'contract !='''
I also tried (IS NOT NULL) but also fails missing operator.
sql.add('update items set cost = 5 where contract IS NOT NULL');
This (Not Null) statement is valid when directly entering it in Access query but not in my Delphi app. Any suggestions?
I have two lines of code very similar 1 works fine and later changing only the operator causes it to fail.
//working
sql.add('update items set cost = 5 where contract = ''''');
but reverse it with
('update items set cost = 5 where contract != ''''');
Syntax error (missing operator)in query expression 'contract !='''
I also tried (IS NOT NULL) but also fails missing operator.
sql.add('update items set cost = 5 where contract IS NOT NULL');
This (Not Null) statement is valid when directly entering it in Access query but not in my Delphi app. Any suggestions?