| Team Member [Top 500]* |
![Team Member [Top 500]* Team Member [Top 500]*](./images/ranks/7280.png) |
 |
Joined: Thu Jun 24, 2004 2:22 pm Posts: 8699 Location: Cleveland, Ohio
|
|
Hi and I am not sure I know exactly what you mean but assuming a dataGrid you would have:
DataSource=ADO Data Control's name
You would also set the AllowAddNew, AllowDelete, and AllowUpdate properties to true or false.
To delete a record in a DAO recordset , you use the Delete method and then you update the recordset. You would have a Delete button on your form, and maybe a few text boxes displaying the data. Something like this:
Private Sub Command1_Click()
Text1.Text=""
Text2.Text=""
dbrecordset.delete
End Sub
When the user clicks the Delete Button (Command1) the two text boxes Text1 and Text2 that display the data (for the current record) are cleared
and the record is deleted.
Is that what you mean?
Ron
|
|