Hide One Record in an Access 2010 Form Without Deleting It
Question details
Hide a single record from an Access form while retaining it in the underlying table.

- Product
- Microsoft Access 2010
- Device & OS
- not provided
- Scenario
- A user wants to remove one selected record from the form's active records without affecting the other records.
- Observed behavior
- Using the form's Data Entry setting hides existing records rather than hiding only the selected record.
Open the form in Design View and identify its underlying table or query in the Record Source property. Make sure the form's record source is editable and includes the table where the deletion marker will be stored.
Mark the selected record and filter it out of the form
Use a Yes/No field to hide individual records while keeping them available for restoration.
This approach marks a record instead of deleting it. Do not use Data Entry mode for this task: it displays a form for adding new records rather than hiding just one existing record.
Open the underlying table in Design View. Add a Yes/No field named MarkedAsDeleted, set its Default Value to No, and save the table. If the form uses a query, include this field in the query.
Open the form in Design View and select the form in the Property Sheet. On the Data tab, set Filter to [MarkedAsDeleted] = False and Filter On Load to Yes. Save and reopen the form to apply the filter.
In Design View, add a button to the form. Select it, open the Property Sheet's Event tab, and choose Event Procedure for On Click. Click the ellipsis button to open the VBA editor.
In the button's Click event procedure, add these statements: If Me.NewRecord Then Exit Sub; Me!MarkedAsDeleted = True; If Me.Dirty Then Me.Dirty = False; Me.Requery. Place each statement on a separate line, then save and reopen the form.
In Form View, navigate to the record you want to hide and click the new button. The form saves the marker and requeries, leaving other unmarked records visible.

Use WPS Office for Your Everyday Office Documents
WPS Office is a free, lightweight alternative with a familiar interface for working with documents, spreadsheets, and presentations. Open common Microsoft Office files to move everyday work over easily. WPS Office does not replace Access or apply filters to Access forms.

Frequently Asked Questions
Why did Data Entry mode hide all the existing records?
The form's Data Entry property is intended for adding new records, not for hiding one selected record. Set Data Entry to No in the form's Property Sheet and use a marker field and filter instead.
How can I show a marked record again?
Open the underlying table in Datasheet View and clear the record's MarkedAsDeleted check box. Reopen or requery the form so the record matches the active-record filter again.
Does marking a record delete it from the table?
No. Setting MarkedAsDeleted to Yes changes a field value; it does not delete the row. The form filter hides that row, but it remains in the underlying table.
Can I record who marked a record and when?
Yes. Add fields such as MarkedBy and MarkedDate to the underlying table, include them in the form's record source, and update them in the button's Click event along with MarkedAsDeleted.




