Results 1 to 3 of 3
  1. #1
    Bluie is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2013
    Posts
    10

    Correct path to mdb

    Hello

    The path to my online MS Access database 2007 and hosted by my Web hosting service is: E:\HostingSpaces\domain\domain.net\wwwroot\App_Dat a

    In my vb.net code, would I write that as:

    Const ConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;E:\HostingSpaces \domain\domain.net\wwwroot\App_Data\students.mdb;"

    At the moment, I have this:

    Const ConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|students.mdb;"

    Many thanks



    Bluie

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    You shouldn't use drive letters. Not everyone has them mapped.
    use UNC paths:
    \\server\folder\folder\file.mdb

  3. #3
    Bluie is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jul 2013
    Posts
    10
    I will give that a try, ranman256, and hopefully it will work. Something like this:

    "Provider=Microsoft.Jet.OLEDB.4.0;\\HostingSpa ces \domain\domain.net\wwwroot\App_Data\students.mdb;"

    Thanks for replying.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 01-13-2015, 07:16 AM
  2. Replies: 5
    Last Post: 09-12-2014, 06:41 AM
  3. Replies: 6
    Last Post: 05-27-2014, 05:41 AM
  4. Replies: 3
    Last Post: 11-24-2012, 08:56 AM
  5. Replies: 9
    Last Post: 06-26-2011, 09:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums