Silv3rSurf3r_20
Member
- Joined
- Aug 3, 2002
- Messages
- 19
Hey All,
Im trying to pull this off but am getting a problem... this is the code snippet
ConnectToDatabase()
Try
myDataRow = myDataTable.NewRow()
myDataRow.BeginEdit()
myDataRow.Item("PatientID") = PatientIDTxt.Text
myDataRow("Name") = NameTxt.Text
myDataRow.EndEdit()
myDataTable.Rows.Add(myDataRow)
DAdapter.InsertCommand = commBuilder.GetInsertCommand
DAdapter.Update(myDataSet)
myDataTable.AcceptChanges()
the error reads: object reference not set to an instance of an object
ok i dont know what that means... me and vb.net havent had to time to get aquainted...
please help...
Thank You
Im trying to pull this off but am getting a problem... this is the code snippet
ConnectToDatabase()
Try
myDataRow = myDataTable.NewRow()
myDataRow.BeginEdit()
myDataRow.Item("PatientID") = PatientIDTxt.Text
myDataRow("Name") = NameTxt.Text
myDataRow.EndEdit()
myDataTable.Rows.Add(myDataRow)
DAdapter.InsertCommand = commBuilder.GetInsertCommand
DAdapter.Update(myDataSet)
myDataTable.AcceptChanges()
the error reads: object reference not set to an instance of an object
ok i dont know what that means... me and vb.net havent had to time to get aquainted...
please help...
Thank You