Silv3rSurf3r_20
Member
- Joined
- Aug 3, 2002
- Messages
- 19
I have added this to a Dataset and am just wondering how i actually insert it into a database... i chose this way of writing i guess because its easier to debug at the end of the day and its definately easier on the eyes... help please?
this is a snippett of the code...
DAdapter.Fill(myDataSet, "PersonalDetails")
myDataRow = myDataSet.Tables.Add("PersonalDetails").NewRow
myDataRow("PatientID") = PatientIDTxt.Text
myDataRow("Name") = NameTxt.Text
myDataRow("Address") = AddressTxt.Text
myDataRow("Category") = CategoryCmb.SelectedIndex
myDataRow("DateCreated") = CreatedTxt.Text
myDataRow("Dentist") = DentistCmb.SelectedIndex
myDataRow("DOB") = DOBTxt.Text
Thank You
this is a snippett of the code...
DAdapter.Fill(myDataSet, "PersonalDetails")
myDataRow = myDataSet.Tables.Add("PersonalDetails").NewRow
myDataRow("PatientID") = PatientIDTxt.Text
myDataRow("Name") = NameTxt.Text
myDataRow("Address") = AddressTxt.Text
myDataRow("Category") = CategoryCmb.SelectedIndex
myDataRow("DateCreated") = CreatedTxt.Text
myDataRow("Dentist") = DentistCmb.SelectedIndex
myDataRow("DOB") = DOBTxt.Text
Thank You