Delete Method Example 1

This example finds a record in the Recordset property of a data control named Data1 and deletes it.

' Find the record you want to delete.
Data1.Recordset.FindFirst "PubNum = 9"
If Not Data1.Recordset.NoMatch Then       ' Check if record found.
  Data1.Recordset.Delete                  ' Delete the record.
End If