Fix Microsoft Access TreeView ActiveX Control Error After Using Layout View
Question details
The user needs to prevent Microsoft Access from losing a TreeView ActiveX control after a form is resized and saved in Layout View, which can cause Run-time error 2683 when the form is reopened.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- A Microsoft Access form containing an ActiveX TreeView control is resized and saved in Layout View; when reopened, the control reference is lost.
- Observed behavior
- Access may show Run-time error 2683 because it no longer recognizes the TreeView control object.
Open the database in Design View and confirm which form contains the ActiveX TreeView control. Make a copy of the database file before changing the Allow Layout View property so the form can be restored if needed.
Set Allow Layout View to No in Design View
Use this workaround when the form still opens in Design View and you want to stop Layout View from corrupting the ActiveX TreeView control.
Microsoft Access can lose the TreeView control reference after the form is saved in Layout View. Disabling Layout View prevents the corruption but also removes Layout View for that form.
In Microsoft Access, right-click the form in the Navigation Pane and choose Design View.
If the Property Sheet is not visible, click the Property Sheet button on the Form Design tab or press F4.
Select the Form object in the Property Sheet, locate the Allow Layout View property on the Format tab, and set it to No.
Save the form and reopen it normally to confirm that the TreeView control is recognized and no Run-time error 2683 appears.

Restore the Form from a Backup Copy
Use this approach if the TreeView control has already been lost and you have a backup of the database or form.
Use WPS Office as a Free, Lightweight Microsoft Office Alternative
WPS Office is a free, lightweight Microsoft Office alternative that opens Word, Excel, PowerPoint, and PDF files with high format compatibility and a familiar ribbon interface. It does not support Microsoft Access databases or ActiveX TreeView controls, but it is ideal for everyday documents, spreadsheets, and presentations without this Layout View corruption issue.
- 1. Download WPS Office Free: Go to the WPS Office download page and download the free installer for your operating system.
- 2. Install WPS Office: Run the installer and follow the on-screen prompts to complete the installation.
- 3. Open your Microsoft Office files: Launch WPS Office and open Word, Excel, or PowerPoint files directly; they remain compatible with Microsoft Office formats.

Frequently Asked Questions
Why does my Microsoft Access TreeView control disappear after using Layout View?
Access can lose the ActiveX TreeView control reference after a form is resized and saved in Layout View. When the form is reopened, Access may no longer recognize the control and can throw Run-time error 2683.
How do I set Allow Layout View to No in Microsoft Access?
Open the form in Design View, open the Property Sheet, select the Form object, find Allow Layout View on the Format tab, and set it to No. Save the form to apply the change.
Can I still use Layout View after applying the workaround?
No. Setting Allow Layout View to No disables Layout View for that form. You can still make design changes in Design View.
Does WPS Office support Microsoft Access databases or ActiveX TreeView controls?
No. WPS Office does not include Microsoft Access and does not support Access ActiveX controls. It is a free alternative for Word, Excel, PowerPoint, and PDF files.
What should I do if the TreeView control is already missing?
Close the database, restore the form from a backup copy, verify the TreeView control in Design View, and then set Allow Layout View to No to prevent the issue from recurring.




