I sqlite db with the following fields
id (AutoNumber)
date (date)
Account (text)
Owner (text)
cbu (text)
balance (double)
bancos.s3db called the db and table accounts
the following code:
Dim dbFile As FolderItem
Dim db As New SQLiteDatabase
dim f as string
dim c as string
dim p as string
dim cb as string
dim s as double
dbFile = GetFolderItem(“c:\PruebaXojo\bancos.s3db”)
db.DatabaseFile = dbFile
If db.Connect Then
f=trim(textfield1.text)
c=trim(textfield2.text)
p=trim(textfield3.text)
cb=trim(textfield4.text)
s=val(textfield5.text)
db.SQLExecute("BEGIN TRANSACTION")
db.SQLExecute ("INSERT INTO cuentas (fecha,cuenta,propietario,cbu,saldo) VALUES "_
+"('f','c','p','cb',s)")
If db.Error then
MsgBox("Error: " + db.ErrorMessage)
db.Rollback
Else
db.Commit
End If
Else
MsgBox("The database couldn’t be opened. Error: " + db.ErrorMessage)
End If
the following code:
I get the following error and does not generate the record, any ideas?
Error: no Such column s
thank’s