here is the code that causes the error
I have tried the same thing various ways and always get the same error
object reference nt set to instance of object
Private conn As New OleDbConnection(sconnstring)
Dim adapter As New OleDbDataAdapter
Dim cmd As OleDbCommand
ssql = "INSERT INTO assets (desc, col2value,col3value) "
ssql = ssql & "VALUES ('" & desclist.Text & "','" & desc2.Text
ssql = ssql & "','" & desc.Text & "')"
cmd.Connection = conn
cmd.CommandType = CommandType.Text
cmd.CommandText = ssql
cmd.ExecuteNonQuery()
Any ideas
Compdrmt
Debugging is the process of removing bugs. Programming is the process of putting them in.
I have tried the same thing various ways and always get the same error
object reference nt set to instance of object
Private conn As New OleDbConnection(sconnstring)
Dim adapter As New OleDbDataAdapter
Dim cmd As OleDbCommand
ssql = "INSERT INTO assets (desc, col2value,col3value) "
ssql = ssql & "VALUES ('" & desclist.Text & "','" & desc2.Text
ssql = ssql & "','" & desc.Text & "')"
cmd.Connection = conn
cmd.CommandType = CommandType.Text
cmd.CommandText = ssql
cmd.ExecuteNonQuery()
Any ideas
Compdrmt
Debugging is the process of removing bugs. Programming is the process of putting them in.