Others

Fix the Microsoft Access Double-Click Event for the Zoom Window

Chanuka GeekiyanageChanuka Geekiyanage Nov 22, 2026 869 views

Question details

The user needs an Access control's double-click event to open the Zoom window.

Fix the Microsoft Access Double-Click Event for the Zoom Window
Product
Microsoft Access
Device & OS
not provided
Scenario
A form uses a VBA double-click procedure to open the Zoom window, normally accessible with Shift+F2.
Observed behavior
The double-click procedure does not run, potentially because it is in the wrong module, the control event is not assigned, or the database is not trusted.
Before you start

Open the database in Microsoft Access and identify the form and control that should open the Zoom window. You will need permission to edit the form's design and VBA code.

Solution 1Recommended

Assign the double-click procedure in the form's class module

Use this solution when the procedure is in a standard module or the control's event property is not connected to it.

1
Open the form in Design view

In the Navigation Pane, right-click the form and select Design View.

2
Assign the event

Select the control, open Property Sheet, and choose the Event tab. Set On Dbl Click to [Event Procedure], then select the ellipsis button next to the property to open the code editor.

3
Check the procedure

In the form's class module, confirm that the generated procedure name matches the control name and the DblClick event. For a control named Notes, the procedure can be: Private Sub Notes_DblClick(Cancel As Integer) DoCmd.RunCommand acCmdZoomBox End Sub. Replace Notes with your control's actual name, and do not leave the event procedure only in a standard module.

4
Save and test

Save the VBA code and form, switch to Form View, and double-click the control to test whether the Zoom window opens.

Assign the double-click procedure in the form's class module
Check the control name: Use the control's Name property, not its label or the field name unless they are the same. The event builder can generate the correct procedure name and signature.
Free Microsoft Office alternative

Use WPS Office for everyday document and spreadsheet work

WPS Office is a free, lightweight alternative with a familiar interface for working with common Office files. It can help you move everyday document and spreadsheet tasks, though it cannot fix or run a Microsoft Access form's VBA event.

Create and edit documents, spreadsheets, and presentations in a familiar interface.Open and save common Microsoft Office formats, including DOCX, XLSX, and PPTX.Work with tabular data in WPS Spreadsheets as an alternative for suitable non-database tasks.Use a lightweight office suite for everyday work.
microsoft office alternative - wps office

Frequently Asked Questions

Where should an Access control's DblClick procedure go?

Place it in the form's class module. Open the form in Design View, select the control, and use Property Sheet > Event > On Dbl Click > [Event Procedure] to open the event in the code editor.

How do I open the Zoom window from VBA?

In the control's DblClick event procedure, use DoCmd.RunCommand acCmdZoomBox. Save the code and test it by double-clicking the control in Form View.

Why does my event still not run in a trusted location?

Trust does not assign an event or move code into the correct module. Check that On Dbl Click is set to [Event Procedure] and that the procedure name matches the control's Name property.

Can I open the Zoom window without a double-click event?

Yes. In Access, focus the control and press Shift+F2 to open the Zoom window where supported.

Can WPS Office run my Access form and its VBA event?

No. WPS Office is an alternative for common document, spreadsheet, and presentation tasks; the Access form and its VBA event must be fixed in Microsoft Access.