The creation and customization of database applications using Microsoft Access
Hi @Doug
Based on your inquiry, I understand that you are looking for the specific VBA reference libraries required to expose and utilize the DataObject object within your project.
To make it available in your project, you need to link the specific library that contains its definition. Here is exactly how to find and enable it:
-Add the Microsoft Forms 2.0 Object Library
The fastest way to gain access to DataObject is by attaching the standard user form control library:
- Press
Alt + F11to open the VBA Editor. - In the top menu, navigate to Tools > References.
- Scroll down the alphabetical list until you locate Microsoft Forms 2.0 Object Library.
- Check the box next to it and click OK.
If you scroll through the list and notice that the Microsoft Forms 2.0 Object Library is completely missing from your selection menu, it means the library file hasn't been automatically registered by your Office installation. You can load it manually using these steps:
- Inside the Tools > References window, click the Browse... button.
- Navigate to your computer's system directories depending on your Windows architecture:
- For 64-bit systems:
C:\Windows\SysWOW64\ - For 32-bit systems:
C:\Windows\System32\
- For 64-bit systems:
- Look for the file named
FM20.DLL. - Select it, click Open, and ensure it is now checked in your references list.
Note: If you have ever inserted a UserForm into your current workbook, Excel will automatically reference this library for you
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.