How to Access Wscript.shell

M

Mike Thomas

In Access 2000 I need to use Wscript.shell to map a newtork drive. When I
try to compile the code, I recieve a "Wscript Variable not defined" error on
line 3 below.

Do I need to hook up to a library in the "References" window to run this
code? If so, which one?

Dim Wshell As Object
Dim objNet As Object

Set Wshell = CreateObject("WScript.Shell")

Many thanks,
Mike Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top