![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi Erel,
I am having difficulty getting any sql updates to work. ![]() Please see the following code: Sub btnInsert_Click ' Temporary Code To Check Database Inserts or Updates (Depending On What has been commented out). This is only test code! ' Command.CommandText = "Insert Into LogNumber(Lognum, Descrip) Values('" & txtLogNum.Text &"', '" & txtLocation.Text & "')" ' Command.CommandText = "Insert Into LogNumber(Lognum, Descrip) Values( 'Test Number', 'Test Description' )" Command.CommandText "Update LogNumber Set Descrip = 'New Description'" Command.ExecuteNonQuery End Sub The lines that have been commented out work fine when they are compiled in. That is I can insert records through variables or actual strings. I cannot update successfully whether or not I use variables or strings or a "Where" condition. It does work at the prompt with sqlite3 in a windows command window, so it is not a database issue? Am I doing something wrong? Also can you point me to code that tells me how to capture sql database exceptions and provide the appropriate error messages. Thank you very much. Regards, David |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Regarding SQLite problem | mozaharul | Questions & Help Needed | 0 | 04-02-2008 09:28 AM |
| Help on Sqlite Update Command | jeterry | Questions & Help Needed | 13 | 03-31-2008 08:45 AM |
| Problem Converting CSV to SQLite | tcgoh | Questions & Help Needed | 5 | 11-01-2007 02:50 AM |
| Another sqlite problem! | giannimaione | Questions & Help Needed | 5 | 05-13-2007 07:25 AM |
| Problem mit SQLite und CheckBox | Fontanus | German Forum | 6 | 05-06-2007 03:03 PM |