Have you checked the References collection on the offending machine? It's
possible that some other Reference is broken, thus causing problems with the
reference to wshom.ocx.
On the machine(s) where it's not working, open any code module. Select Tools
| References from the menu bar. Examine all of the selected references.
If any of the selected references have "MISSING:" in front of them, unselect
them, and back out of the dialog. If you really need the reference(s) you
just unselected (you can tell by doing a Compile, under the Debug menu in
the VB Editor), go back in and reselect them.
If none have "MISSING:", select an additional reference at random, back out
of the dialog, then go back in and unselect the reference you just added. If
that doesn't solve the problem, try to unselect as many of the selected
references as you can (Access may not let you unselect them all), back out
of the dialog, then go back in and reselect the references you just
unselected. (NOTE: write down what the references are before you delete
them, because they'll be in a different order when you go back in)
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"Will" <westes-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> We have an MS Access application that has the following code fragment:
>
> Dim wsh as WshNetwork
> Set wsh = New WshNetwork
> ....
>
> At some point, creation of WshNetwowk object (second line) stopped
> working on one of the computers where it had worked normally
> previously. The error message says:
>
> Automation error
> The specified procedure could not be found
>
> The unlucky computer runs Windows 2003 and MS Office 2000. The
> wshom.ocx control (which, I believe, is "responsible" for WshNetwork
> objects) appears to be registered properly. The user of this computer
> does not remember what exactly might have happened on this computer
> before the problem occurred, but it could have been
> installation/deinstallation of some software, modification of some
> security settings, fiddling with services, etc.
>
> Please, advise how this problem could be debugged and, ideally, fixed.
>
> --
> Will
>
>