How to Reference a Parent Form Control in Access VBA to Fix Error 2465
Question details
The user needs to correctly reference a control on a parent form from a subform in Access VBA to avoid Error 2465.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- Writing VBA code in an Access subform that requires reading from or modifying a control located on the main parent form.
- Observed behavior
- Using relative references like Me.Parent often triggers Access Error 2465, indicating that the application cannot find the specified field or control.
Ensure that the control you are trying to reference actually exists on the parent form and take note of its exact name from the Property Sheet.
Use Absolute Syntax via the Forms Collection
The most reliable way to reference a parent form's control and prevent Error 2465 is to explicitly specify the main form through the Forms collection.
Access Error 2465 typically means the application cannot locate the field referred to in your expression. When navigating from a subform to a parent form, relative references like 'Me.Parent' can sometimes be misinterpreted depending on the context of the VBA module.
Open your Access database and press ALT + F11 to launch the Visual Basic for Applications (VBA) Editor.
Find the module or subform code where Error 2465 is occurring, specifically looking for lines using syntax like Me.Parent!ControlName.
Replace the relative reference with the explicit syntax: Forms!MainFormName!ControlName.
Carefully replace 'MainFormName' with the exact name of your parent form, and 'ControlName' with the target control's name.
Save your VBA module, return to the Access interface, and test the form functionality to confirm the error is resolved.

Verify Control Name and Existence in Design View
Often, Error 2465 is caused by a simple typo. Verifying the exact property name of the control ensures your VBA code has a valid target.
Looking for a reliable Microsoft Office alternative?
While WPS Office does not feature a direct database application like MS Access, it provides an outstanding, free alternative for Word, Excel, and PowerPoint. If you are handling data exports, writing reports, or creating presentations, WPS Office offers a lightweight, highly compatible environment.
- 1. Download the software: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Run the installation: Open the downloaded setup file and follow the on-screen prompts to easily install the suite.
- 3. Open your files: Launch WPS Office and immediately open your existing Office documents, spreadsheets, or presentations.

Frequently Asked Questions
Why does Access Error 2465 happen when referencing a form?
Access Error 2465 occurs because Access cannot find the field or control referred to in your code. This usually happens due to a spelling mistake in the control's name or incorrect reference syntax between a parent form and its subforms.
Can I still use Me.Parent in my Access VBA code?
While 'Me.Parent' can work in certain contexts to refer to the parent form object itself, appending a specific control name directly to it often fails and causes errors. It is safer to use the explicit 'Forms!MainFormName!ControlName' syntax.
How do I reference a subform control from the main form?
To reference the other way around (from a main form to a subform), you must reference the subform container control on the main form, then its Form property, then the specific control. The syntax is: Me.SubformContainerName.Form!ControlName.




