B
Buz Waitz
Ok, I'm a beginner. I need help.
I've set up an oledbdataadapter, connection, and ds for a
simple, one column (email address) table in Access. I am
trying to do a simple insert of one value. My code:
Dim strEmail As String = Trim
(Me.txtEmail1.Text)
Me.OleDbInsertCommand1.Parameters.Add
("@email", strEmail)
Me.OleDbInsertCommand1.Connection.Open()
Me.OleDbInsertCommand1.ExecuteNonQuery()
Me.OleDbInsertCommand1.Connection.Close()
Generates this error:
OleDBMessage: Parameter ?_1 has no default value.
ErrorCode: -2147217904 Source: Microsoft JET Database
Engine
I have researched and simply cannot figure out what
parameter, where, it is looking for. Please help.
Thank you
Buz
I've set up an oledbdataadapter, connection, and ds for a
simple, one column (email address) table in Access. I am
trying to do a simple insert of one value. My code:
Dim strEmail As String = Trim
(Me.txtEmail1.Text)
Me.OleDbInsertCommand1.Parameters.Add
("@email", strEmail)
Me.OleDbInsertCommand1.Connection.Open()
Me.OleDbInsertCommand1.ExecuteNonQuery()
Me.OleDbInsertCommand1.Connection.Close()
Generates this error:
OleDBMessage: Parameter ?_1 has no default value.
ErrorCode: -2147217904 Source: Microsoft JET Database
Engine
I have researched and simply cannot figure out what
parameter, where, it is looking for. Please help.
Thank you
Buz