Hi, Im working with the SqlDbutils example.
Trying to insert a record with the following code...
Query = "INSERT INTO " & Main.DBTableName & _
" (Mercado,Panel,Especie,Moneda)" & _
" values (" & _
" '" & sMercado & "'," & _
" '" & sPanel & "'," & _
" '" & sEspecie & "'," & _
" '" & sMoneda & "' " & _
" )"
clipb.setText(Query)
Msgbox(Query,"")
Main.SQL1.ExecNonQuery(Query)
I get no error but nothig is added to the table.
I set the query to the clipboard, copy it to SqlLite Expert and run it and the record is added ok.
Whats the problem and how can I trap the possible errors?
Thanks
Trying to insert a record with the following code...
Query = "INSERT INTO " & Main.DBTableName & _
" (Mercado,Panel,Especie,Moneda)" & _
" values (" & _
" '" & sMercado & "'," & _
" '" & sPanel & "'," & _
" '" & sEspecie & "'," & _
" '" & sMoneda & "' " & _
" )"
clipb.setText(Query)
Msgbox(Query,"")
Main.SQL1.ExecNonQuery(Query)
I get no error but nothig is added to the table.
I set the query to the clipboard, copy it to SqlLite Expert and run it and the record is added ok.
Whats the problem and how can I trap the possible errors?
Thanks