Are you sure you really need those extra references, which were not present
earlier, ie.:
Microsoft ActiveX Data Objects 2.1 Library
Active DS Type Library
Active Setup Control Library
Make sure that your code compiles. When you are in any code module, click on
Debug > Compile ProjectName, where ProjectName represents the name of your
VBA project. Fix any compile errors that you might find. If the menu item
appears greyed out, then your code compiled okay.
Next, try deselecting one reference at a time, making a note of each
reference. Click on the OK button to dismiss the references dialog. Then
click on Debug > Compile ProjectName again. If your code compiles okay, then
you did not need the reference that you just deselected. On the other hand,
if you all of a sudden generate a compile error, then go back in and
re-select the indicated reference. I don't expect that any of the above
discussion will solve the error message that you are getting, but it is
always a good idea to include references only if they are truly needed.
Having extra checked references just consumes RAM memory needlessly, and
increases the chances of any given user encountering a MISSING reference
error.
It sure sounds like you are using a switchboard manager created switchboard.
You can verify this by looking for a table that is named Switchboard Items.
Starting with Access 2000, the switchboard manager wizard uses late bound ADO
code. This means that a reference to the ADO library (ie. Microsoft ActiveX
Data Objects 2.1 Library) is NOT required, if this form represents the only
ADO code in your database. Early bound code requires references; late bound
code has the advantage of not requiring checked references.
I recommend re-registering the following two files. Note that the path to
each file may be different on your PC. To do this, click on Start > Run. Then
copy each of the statements shown below, one-at-a-time, and click on OK:
Regsvr32.exe C:\progra~1\common~1\micros~1\dao\dao360.dll
Regsvr32.exe C:\progra~1\common~1\system\ado\Msado15.dll
Optional, but won't hurt is to make sure that dao350.dll is also properly
registered:
Regsvr32.exe C:\progra~1\common~1\micros~1\dao\dao350.dll
Reference:
http://support.microsoft.com/?id=833220
Make sure that you have the latest version of MDAC (Microsoft Data Access
Components) installed:
http://msdn.microsoft.com/dataaccess
If you still cannot get the switchboard to function properly, then the code
behind this form may have become corrupted. Use the instructions shown here
to rebuild your switchboard form:
Q: I deleted my Switchboard form by accident and I do not have a backup.....
http://home.bendbroadband.com/conradsystems/accessjunkie/switchboardfaq.html#newform
Also recommended: Download the MDAC Component Checker utility and run it on
your PC:
http://support.microsoft.com/?id=307255
Finally, consider ditching the switchboard manager created switchboard, and
create your own unbound (ie. no record source) switchboard. Add command
buttons using the toolbox wizards to open the appropriate forms and reports.
Tom Wickerath
Microsoft Access MVP
http://www.access.qbuilt.com/html/expert_contributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________