ok it nolonger gives me an error but it doesn't add anything to the db am i missing something here?
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
Dim objRow As DataRow
'Create a new DataRow object for this table
objRow =...
i am having some trouble with my add btn
PrivateSub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
Dim objRow As DataRow
cmd = New OleDbCommand
'Create a new DataRow object for this table
objRow = ds.Tables("CarInfo").NewRow()
'Edit Each Field...
when i try to add data to a access db i get this error
Update requires a valid InsertCommand when passed DataRow collection with new rows.
here is the code once again
Option Explicit On
Imports System.Data
Imports System.Data.OleDb
Public Class Form1
Inherits System.Windows.Forms.Form
'...
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll
this comes up when i try to run my program and dont know why here is the code below
Imports System.Data
Imports System.Data.OleDb
Public Class Form1
Inherits System.Windows.Forms.Form
#Region "...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.