Dim Customer As DataSet1TableAdapters.Customer1TableAdapter = New DataSet1TableAdapters.Customer1TableAdapter
Dim Dt1 As New DataSet1.Customer1DataTable
Dim TA1 As New DataSet1TableAdapters.Customer1TableAdapter
Dim DR1 As DataSet1.Customer1Row
Try
Customer.InsertQuery(TxtCust.Text, MaskedPhone.Text, TxtAddress.Text, MaskedIC.Text, MaskedDL.Text)
MsgBox("data entered")
DR1 = Dt1.NewRow
Dt1.Rows.Add()
Customer.Update(Dt1)
Dt1.AcceptChanges()
Catch ex As Exception
MsgBox(ex.Message)
End Try
i need help in this, i've searched the web and books but it cant seem to write any data to the database. it only writes it virtually. i've almost gave up.