G
Guest
At the moment I'm building a Windows Form (connected to an Access DB) which has bound controls. Using some examples I created navigation buttons, so far so good
The problem is the following. I want to create an Add button so the user can add a new record to the database. I searched for several examples but unfortunately all the examples use the same technique. They add a new row and fill it already with data
Example
Private Sub ButtonAdd_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles ButtonAdd.Clic
Dim Row As DataRow = Customers.Tables(0).NewRow(
Row("CompanyName") = "Hello Fudge Company
Row("ContactName") = "Robert Golieb
Row("ContactTitle") = "Fudge Master
Customers.Tables(0).Rows.Add(Row
End Su
What I want is like an Access form. The user presses the Add button, the user sees a form with blank fields, the user fills them and presses a save-button to save it to the database. I can't find an example anywhere where this is explained.
Can someone help?
The problem is the following. I want to create an Add button so the user can add a new record to the database. I searched for several examples but unfortunately all the examples use the same technique. They add a new row and fill it already with data
Example
Private Sub ButtonAdd_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles ButtonAdd.Clic
Dim Row As DataRow = Customers.Tables(0).NewRow(
Row("CompanyName") = "Hello Fudge Company
Row("ContactName") = "Robert Golieb
Row("ContactTitle") = "Fudge Master
Customers.Tables(0).Rows.Add(Row
End Su
What I want is like an Access form. The user presses the Add button, the user sees a form with blank fields, the user fills them and presses a save-button to save it to the database. I can't find an example anywhere where this is explained.
Can someone help?