S
Scott Starker
This is a question from a Newbie. Although it executes correctly there is no
new record added to the table (which isn't what I want
. Could it be that
the table has an "AutoNumber" field (RecordID)? I have tried (among other
things):
SQLString = "SELECT * FROM TypeNames"
DBAdapter2 = New OleDbDataAdapter(SQLString, DBConnection)
DBDataSet2 = New DataSet()
DBAdapter2.Fill(DBDataSet2, "TypeNames")
DBTable3 = DBDataSet2.Tables("TypeNames")
foundRow2 = DBTable3.NewRow()
foundRow2("TypeCode") = cmbTypeLookup.Text
foundRow2("TypeDomain") = txtDomain.Text
foundRow2("TypeNameSpan") = txtTypeName.Text
' New row.
DBTable3.Rows.Add(FoundRow2)
I assume that the "AutoNumber" would get inserted automatically but I may be
wrong. Could that be it? How do I do this? Thanks.
Scott
new record added to the table (which isn't what I want
![Smile :) :)](/styles/default/custom/smilies/smile.gif)
the table has an "AutoNumber" field (RecordID)? I have tried (among other
things):
SQLString = "SELECT * FROM TypeNames"
DBAdapter2 = New OleDbDataAdapter(SQLString, DBConnection)
DBDataSet2 = New DataSet()
DBAdapter2.Fill(DBDataSet2, "TypeNames")
DBTable3 = DBDataSet2.Tables("TypeNames")
foundRow2 = DBTable3.NewRow()
foundRow2("TypeCode") = cmbTypeLookup.Text
foundRow2("TypeDomain") = txtDomain.Text
foundRow2("TypeNameSpan") = txtTypeName.Text
' New row.
DBTable3.Rows.Add(FoundRow2)
I assume that the "AutoNumber" would get inserted automatically but I may be
wrong. Could that be it? How do I do this? Thanks.
Scott