The following sql query works to insert a row in my table when run from the Query Analyser.
insert SubmittalPackagesItems (pkgcode, projidjobnumber, pkgitem, pkgdesc, pkgaction, pkgnotes, pkgclosed, pkggennotes)
select pkgcode + 1, projidjobnumber, pkgitem, pkgdesc, pkgaction, pkgnotes, pkgclosed, pkggennotes
from SubmittalPackagesItems
where projidjobnumber = 2018 and pkgclosed = "" and pkgcode = 3011100
How can I get this same query to work using setSQLText?
Thanks.
insert SubmittalPackagesItems (pkgcode, projidjobnumber, pkgitem, pkgdesc, pkgaction, pkgnotes, pkgclosed, pkggennotes)
select pkgcode + 1, projidjobnumber, pkgitem, pkgdesc, pkgaction, pkgnotes, pkgclosed, pkggennotes
from SubmittalPackagesItems
where projidjobnumber = 2018 and pkgclosed = "" and pkgcode = 3011100
How can I get this same query to work using setSQLText?
Thanks.