Fix the Microsoft Access Double-Click Event for the Zoom Window
Question details
The user needs an Access control's double-click event to open 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.
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.
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.
In the Navigation Pane, right-click the form and select Design View.
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.
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.
Save the VBA code and form, switch to Form View, and double-click the control to test whether the Zoom window opens.

Check whether Access trusts the database
Use this check if the event is assigned correctly but VBA code is still blocked.
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.

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.




