Listed below is the code I am using to add records to a SQLite table. The same code worked fine on my other tables but for some reason this will not.
If txtAddress.Text <> “” Then
If cboxCodeId.Text <> “” Then
Dim dr As New DatabaseRecord
dr.Column("BookAcct") = txtBookAcctCombo.Text
dr.Column("MeterId") = txtMeterId.Text
dr.Column("CrrReadin") = txtCurrRdg.Text
dr.Column("Address") = txtAddress.Text
dr.Column("CustName") = txtCustName.Text
dr.Column("Location") = txtLocation.Text
dr.Column("Book") = LabelBook.Text
dr.Column("Account") = LabelAccount.Text
dr.Column("Desc") = cboxCodeId.Text
dr.Column("Notes") = txtNotes.Text
dr.Column("EntDate") = txtDate.Text
DB.SQLExecute("BEGIN TRANSACTION")
DB.InsertRecord("WorkOrders", dr)
DB.Commit
If DBError Then MsgBox("An Error Occured: " + DB.ErrorMessage)
End If
End If
I receive no error from the DBError procedure. The only difference from this table and the others that are working is they have less fields in a record. Is there a limit to SQLite?
Any comments would be appreciated.
Julian