Click here to Skip to main content
15,917,808 members
Home / Discussions / Database
   

Database

 
AnswerRe: Adding Row to Access database table Pin
Stephen McGuire8-Aug-06 2:43
Stephen McGuire8-Aug-06 2:43 
JokeRe: Adding Row to Access database table Pin
dsovino8-Aug-06 4:01
dsovino8-Aug-06 4:01 
GeneralRe: Adding Row to Access database table Pin
Stephen McGuire8-Aug-06 7:19
Stephen McGuire8-Aug-06 7:19 
QuestionSychronization in C# Pin
Rabbit171-Aug-06 5:22
Rabbit171-Aug-06 5:22 
AnswerRe: Sychronization in C# Pin
Ennis Ray Lynch, Jr.1-Aug-06 10:39
Ennis Ray Lynch, Jr.1-Aug-06 10:39 
GeneralRe: Sychronization in C# Pin
Rabbit171-Aug-06 12:49
Rabbit171-Aug-06 12:49 
Generalnope Pin
Ennis Ray Lynch, Jr.1-Aug-06 18:27
Ennis Ray Lynch, Jr.1-Aug-06 18:27 
QuestionProblems updating a dataset Pin
newbjohny1-Aug-06 4:16
newbjohny1-Aug-06 4:16 
Hi, I am having trouble in updating my dataset, I create a dataset from a select command and display the details to a datagrid. I then goto the next new line in the datagrid and insert some new details then click the insertRow button (code below) and I get the following error message :-

the exception which is caught states : - "Value cannot be null. Parameter name: dataset"

I am not up to scratch with datasets, but all examples I can find of updates are where only one line of the dataset is shown at a time in text boxes and then a blank set of textboxes are displayed to add a new row then convert the textboxes.text to the add row command, but I am creating an application to be a front end to a database so none of the columns are known so I cannot create this form of input as the amount of textboxes would never be known.

Please help

Many thanks

John

Code for updating dataset

[CODE] Private Sub btnInsertRow_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnInsertRow.Click
Dim dset As DataSet
tblName = (cmbInsertData.Text)
dbConn.openExistingDatabse("Data Source=" & getDBName() & ";Version=3;New=False;Compress=True;")
dbConn.createSQLCommand()
Try
dbConn.updateDataSet(dset, tblName)
Catch es As Exception
MessageBox.Show(es.Message)
End Try
End Sub[/CODE]

[CODE] Public Sub updateDataSet(ByVal dset As DataSet, ByVal tableName As String)
Dim sqlite_dataAdapter As SQLiteDataAdapter = New SQLiteDataAdapter()
sqlite_commandBuilder = New SQLiteCommandBuilder(sqlite_dataAdapter)
sqlite_dataAdapter.Update(dset, tableName)
End Sub[/CODE]


AnswerRe: Problems updating a dataset Pin
Paul Brower3-Aug-06 10:50
Paul Brower3-Aug-06 10:50 
GeneralRe: Problems updating a dataset Pin
newbjohny4-Aug-06 0:33
newbjohny4-Aug-06 0:33 
QuestionHow to restore records from table which is dropped. Pin
Abhishek Joshi1-Aug-06 2:58
Abhishek Joshi1-Aug-06 2:58 
AnswerRe: How to restore records from table which is dropped. Pin
ToddHileHoffer1-Aug-06 3:05
ToddHileHoffer1-Aug-06 3:05 
QuestionHow to retrieve records from a ADODB with c# Pin
VanEtienne1-Aug-06 2:57
VanEtienne1-Aug-06 2:57 
AnswerRe: creating special relations between datatables Pin
ToddHileHoffer1-Aug-06 2:52
ToddHileHoffer1-Aug-06 2:52 
GeneralRe: creating special relations between datatables Pin
yiwpyos17-Aug-06 23:45
yiwpyos17-Aug-06 23:45 
QuestionFirewall problem Pin
johan31311-Aug-06 1:54
johan31311-Aug-06 1:54 
QuestionAccessing 2 databases [modified] Pin
mcgann1-Aug-06 1:01
mcgann1-Aug-06 1:01 
AnswerRe: Accessing 2 databases Pin
ToddHileHoffer1-Aug-06 3:02
ToddHileHoffer1-Aug-06 3:02 
QuestionInsert multiple values through Trigger Pin
DineshSharma1-Aug-06 0:05
DineshSharma1-Aug-06 0:05 
AnswerRe: Insert multiple values through Trigger Pin
ToddHileHoffer1-Aug-06 2:59
ToddHileHoffer1-Aug-06 2:59 
GeneralRe: Insert multiple values through Trigger Pin
DineshSharma2-Aug-06 2:44
DineshSharma2-Aug-06 2:44 
QuestionSQL Scripting in a Batch File Pin
Programm3r31-Jul-06 23:45
Programm3r31-Jul-06 23:45 
QuestionSQL Scripting in a Batch File Pin
Programm3r31-Jul-06 23:42
Programm3r31-Jul-06 23:42 
AnswerRe: SQL Scripting in a Batch File Pin
seea3-Aug-06 0:34
seea3-Aug-06 0:34 
Questioncreating special relations between datatables Pin
yiwpyos31-Jul-06 21:38
yiwpyos31-Jul-06 21:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.