hi there,
i ve got a problem with adding data into database , basically i m using my own typeDataset to insert into table when it run, it run properly but didnt store any value into database .. here is my code
Dim tdsReligion As New dsReligion
con1.Open()
daReligion.Fill(tdsReligion)
Dim rows As dsReligion.ReligionTypeRow = tdsReligion.ReligionType.NewReligionTypeRow()
rows.ReligionName = TextBox1.Text
'rows.ReligionID = 1
tdsReligion.ReligionType.AddReligionTypeRow(rows)
tdsReligion.AcceptChanges()
daReligion.Update(tdsReligion)
con1.Close()
it does nothing when i did check the debug in the autofield everything is adding correctly but not in the a watch1 no value is adding at all !!! i m new to this please anyone can suggest what should i do
i ve got a problem with adding data into database , basically i m using my own typeDataset to insert into table when it run, it run properly but didnt store any value into database .. here is my code
Dim tdsReligion As New dsReligion
con1.Open()
daReligion.Fill(tdsReligion)
Dim rows As dsReligion.ReligionTypeRow = tdsReligion.ReligionType.NewReligionTypeRow()
rows.ReligionName = TextBox1.Text
'rows.ReligionID = 1
tdsReligion.ReligionType.AddReligionTypeRow(rows)
tdsReligion.AcceptChanges()
daReligion.Update(tdsReligion)
con1.Close()
it does nothing when i did check the debug in the autofield everything is adding correctly but not in the a watch1 no value is adding at all !!! i m new to this please anyone can suggest what should i do