Hi
I've run this code and i get no errors but my form data is not saved on the dataset or database. This is the click event code.
Dim conn As New SqlConnection("Data Source=.\SQLEXPRESS; AttachDbFilename=|DataDictionary|\TMSDB.mdf;Integrated Security=True Instance=True")
Dim ds As New DataSet
conn.Open()
Dim Adp As New SqlDataAdapter("select * from Housing")
Adp.Fill(ds, "Housing")
Dim dr As DataRow = ds.Tables("Housing").NewRow()
dr("housingType") = Me.TextBox1.Text
dr("description") = Me.TextBox2.Text
dr("location") = Me.TextBox3.Text
ds.Tables("Housing").Rows.Add(dr)
Dim cmd As New SqlCommandBuilder(Adp)
Adp.Update(ds, "Housing")
MessageBox.Show("Information Saved!")