To re-create the reference, you can use one of the following two methods.
You can re-create the reference by adding the library file or .ocx file to
the Available References list (Method 1). Or, you can re-create a reference
to an .ocx file by inserting the corresponding ActiveX control on a form (Method 2).
Method 1
To add the library file or .ocx file to the list of available references in
the target database, follow these steps:
- In the target database, open a new module in Design view.
- In the Visual Basic Editor on the Tools menu, click References.
- In the References dialog box, scroll down the Available References list and select the check box for the library file or .ocx file to which you need to re-create the reference. If the file doesn't appear on the list, click Browse, locate the file in the Add Reference dialog box, and then click OK.
Method 2
When you insert an ActiveX control on a form, Microsoft Access
automatically creates a reference to the .ocx file that corresponds to the
control, even if you don't save the form. This method is useful if you do
not know the name of the .ocx file of the ActiveX control. To re-create a
reference to the .ocx file of an ActiveX control, follow these steps:
- In the Database window, click Forms under Objects, and then click New.
- In the New Form dialog box, click Design View, and then click OK to create a new form.
- On the Insert menu, click ActiveX controls.
- In the Insert ActiveX Control dialog box, click the ActiveX control to which you want to create a reference. Then click OK.
- On the File menu, click Close. When prompted to save the form, click No.