i m new in vb.net
i just try to do simple insert record. I am using MSAccess for database
and I follow msdn sample code
' Visual Basic
Dim anyRow as DataRow = DatasetName.ExistingTable.NewRow
anyRow.FirstName = "Jay"
anyRow.LastName = "Stevens"
ExistingTable.Rows.Add(anyRow)
however the data only can when the application session
which means the data will gone after the application is closed
and I checked the database , the new record is not existing in DB
anyone can help?
Do i need comment ? i try AcceptChanges(), which is not working too.
i just try to do simple insert record. I am using MSAccess for database
and I follow msdn sample code
' Visual Basic
Dim anyRow as DataRow = DatasetName.ExistingTable.NewRow
anyRow.FirstName = "Jay"
anyRow.LastName = "Stevens"
ExistingTable.Rows.Add(anyRow)
however the data only can when the application session
which means the data will gone after the application is closed
and I checked the database , the new record is not existing in DB
anyone can help?
Do i need comment ? i try AcceptChanges(), which is not working too.