Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Map network from Access

Status
Not open for further replies.

NNNNN

MIS
Dec 2, 2002
90
GB
Is it possible to map a network drive
when a button is clicked on a form in Access?
 
Try this:

Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.MapNetworkDrive "H:", "\\Server\Share"

Hope this is what you were looking for.
Shane
 
You'll need to ensure you have a reference set to Windows Scripting Host for KarMac21's code to work. In VB Editor, Tools, References, Windows Scripting Host, etc.

Good Luck!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top