• Mapping a shared drive On open of a form (Access 2000)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Mapping a shared drive On open of a form (Access 2000)

    Author
    Topic
    #385333

    Is there a way to map a network drive on the On Open event (or some other event) when a form is open. The drive mapping is sever1FS_ADM_Data_06$. Really in a bind here. Thanks..

    Viewing 1 reply thread
    Author
    Replies
    • #664213

      What exactly are you trying to do? If you know the UNC of the map, then you can use that all along. confused

      • #664215

        The UNC is sever1FS_ADM_Data_06$. I need the user to map to this when they open the form. This where the main table for the form is located. Does this make sense?

        • #664226

          Not really. Is the table in a database or is it some kind of external file? Is this the connect path for a linked table, or what? Access doesn’t need mapped drives, it works just fine with UNC paths, so what you’re trying to do isn’t clear. Are you trying to bind the form to a file in that location? If so, it won’t work. You can bind a form to a table or query or a stored procedure but not to a file.

    • #664410

      With the obvious questions of why you want to do this aside, here’s how.

      net use T: MyServerMyShare

      Just make a string with that command and shell it.

    Viewing 1 reply thread
    Reply To: Mapping a shared drive On open of a form (Access 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: