Delete a row

Kenln

Registered User.
Local time
Today, 15:47
Joined
Oct 11, 2006
Messages
551
I have a (sub)form. It a field is equal to a specific value I want to delete the row.

I was thinking of using Form.BeforeUpdate.
and if found set Cancel = True
and delete the row (record).

I can test for the value be how do you delete the record?

Thanks,
 
to delete a record you can use:

DoCmd.RunCommand acCmdDeleteRecord
 
Works great,

Thank you,
 

Users who are viewing this thread

Back
Top Bottom