Shortcut error in Access 2000 works in 2003.

Bosch

Registered User.
Local time
Yesterday, 16:31
Joined
May 13, 2005
Messages
89
Hello..

I got the following code from this forum to create shortcut on the desktop..
==================
Set objShell = New WSHShell
Set objShortcut = objShell.CreateShortcut(objShell.SpecialFolders("AllUsersDesktop") & "\" & sShortcut)
objShortcut.TargetPath = sDB
objShortcut.WindowStyle = "3"

objShortcut.SAVE
=================
I have Access 2003..but file format is 2000 because others have access 2000.
This code works great on my machine..but getting error on access 2000 machine..It does not recognize "New WSHShell" in the above code.

-------------------error message
Compile Error:
User-defined type not defined
-------------------

Any references needs to be added?

Please help...Thanks..
 
Any help?

Anyone experienced this problem? I have added reference to "Windows Script Host Object Model" but still problem exists..

Thanks
 

Users who are viewing this thread

Back
Top Bottom