The creation and customization of database applications using Microsoft Access
Use the Microsoft Forms 2.0 Object Library reference.
In an Access VBA project, add it like any other reference:
- Open any module.
- Go to Tools → References….
- Check Microsoft Forms 2.0 Object Library.
- Click OK.
After that, DataObject is available (from Microsoft.Vbe.Interop.Forms) and can be used in code.
References: