The creation and customization of database applications using Microsoft Access
Hi @Doug
To use the DataObject type in an MS Access VBA project, you need to reference the Microsoft Forms 2.0 Object Library, because DataObject is not part of native VBA and is instead provided by the MSForms library. Without this reference, you’ll get “User-defined type not defined” when declaring an object.
To do this Go to Tools > References > Browse then navigate to locations such as C:\Windows\System32, C:\Windows\SysWOW64, and look for a file named FM20.DLL then open it.
I hope this information helps.
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.