After much negotiation, I can initialize a SQLite db and load and save a record. When I try to make a new record, though, I run into problems. First I check to see how many records are there:
Code: Select all
put "SELECT count(*) FROM dna" into dCmd
put revDataFromQuery(tab,,debtorDB,dCmd) into lastRec
put "INSERT INTO dna (uniqDna,dnaKey) VALUES (null,lastRec+1)" into tSQL
revExecuteSQL debtorDB, tSQL
put the result
Code: Select all
no such column: theNewRec
in the messagebox.
I've tried putting parenthesis, single brackets, and double brackets around lastrec+1, and putting that value into a newValue variable to get around this, but it insists on interpreting it as a column (except for the doubles, which throw another error on the unrecognized closing token).
both of the columns of the table are INTEGER. I'm using the internal SQLite.
What am I missing here?
thanks
hawk