RecordSet.DeleteRecord

From Xojo Documentation

Method

RecordSet.DeleteRecord()

Supported for all project types and targets.

Deletes the current record in the RecordSet.

Example

// Delete the current record in an existing RecordSet
// db is an existing database connection
rs.DeleteRecord
If db.Error Then
MsgBox("DB Error: " + db.ErrorMessage)
End If