I am trying to send data to access, as well as edit and delete it.
I used the Visual Data Manager and created a DB called yob with two fields named "Name" and "Date".
I added the data control and connected to my form with two text boxes: txtName and txtDate.
I connected to the database with the data control and set the data Field for txtName and txtDate correctly.
I added command buttons for Add, Delete, Change and Search.
Here is the code for the add button
Private Sub cmdAdd_Click()
I get this error:
Error - "Action was cancelled by an associated object" Error - 3426
- How can I Fix this error? I am simply looking for a way to add new record to the database.
- Also, how can I code the delete and edit buttons?