Thread: Sqlite
View Single Post
  #2 (permalink)  
Old 08-18-2007, 05:58 AM
Erel's Avatar
Erel Erel is online now
Administrator
 
Join Date: Apr 2007
Posts: 3,143
Default

There is no special Basic4ppc SQL syntax.
Basic4ppc just passes the command string to the SQLite engine.
You should test your actual command string using msgbox(cmd.CommandText) or using a breakpoint.
In your example I guess you are adding strings and not numbers so you need:
cmd.CommandText = "INSERT ... VALUES('" & textBox1.Text & "','" & textbox2.Text & "','" & textBox3.Text & "')"
Notice the small apostrophes.

Last edited by Erel : 08-18-2007 at 04:56 PM. Reason: Removed an extra quote.
Reply With Quote