On the "new client registration" form i'm using some textboxes and a button that suppoes to add the items insterted in the textboxes to database.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
ConturiTableAdapter.Insert(TextBox1.Text, TextBox2.Text, TextBox3.Text, TextBox4.Text, TextBox5.Text, TextBox6.Text, ComboBox1.SelectedItem, TextBox8.Text, TextBox9.Text, "male")
For Each item In Me.Controls
If TypeOf item Is TextBox Then
item.Text = String.Empty
End If
Next
End Sub
This is the code i'm using but noting is stored i the database after i click the button.... any ideas?

New Topic/Question
Reply



MultiQuote



|