Others

Hide One Record in an Access 2010 Form Without Deleting It

Olivia MillerOlivia Miller Nov 20, 2026 869 views

Question details

Hide a single record from an Access form while retaining it in the underlying table.

Hide One Record in an Access 2010 Form Without Deleting It
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.
Before you start

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.

Solution 1Recommended

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.

1
Add a marker field

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.

2
Set the form filter

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.

3
Add a mark button

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.

4
Save and refresh the selected record

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.

5
Mark one record

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.

Mark the selected record and filter it out of the form
Restore a marked record: Open the underlying table in Datasheet View, find the record, and clear its MarkedAsDeleted check box. Reopen or requery the form to show it again. You can also add separate fields for the user name and deletion date if an audit trail is needed.
Free Microsoft Office alternative

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.

A familiar interface for everyday Office tasksCompatibility with Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTXSpreadsheet tools for filtering tabular data outside an Access databaseFree, lightweight apps for common document work
microsoft office alternative - wps office

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.