Deleting a Record

To delete a record, find the record you want to delete and call the Delete method. After you delete a record, it's still the current record. You must use the MoveNext method to move to the next row if you are planning to perform additional operations with your records. An attempt to do anything with the row that has just been deleted will generate a run-time error.

The procedure in Hands-On 14-4 deletes the record for Paul Marco which was added and then modified in earlier procedures.

0 0

Post a comment