+ Reply to Thread
Results 1 to 2 of 2

ADODB Connection to Access DB stored on Office 365

  1. #1
    Registered User
    Join Date
    04-12-2011
    Location
    Bay Lake, FL
    MS-Off Ver
    Excel 2016 / 365
    Posts
    66

    ADODB Connection to Access DB stored on Office 365

    (First off, apologies if this is the wrong forum ... I wasn't sure if this belonged in "Excel Programming / VBA / Macros" or "Access VBA" or "Office 365")

    I'm currently using a macro-enabled spreadsheet to manipulate an Access DB which is stored on a network (not cloud) server, accessible within our company's internal network. (The spreadsheet is based on Denis Wright's excellent tutorial, located at http://www.datawright.com.au/excel_r...ss_and_ado.htm). Overall, this has worked well, although some of my users have complained that it doesn't work when they're working remotely.

    In order to get around this, I'd like to try and move the .accdb file to our company's Office 365 location, but the issue I'm running into is that the path to the Office 365 folder is something like this: C:\Users\MyUserName\OneDrive - CompanyName ... obviously, since this has my username in the path, it won't work for any other user. Does anyone know what the correct path to the Office 365 folder would be? Is it even possible to use Office 365 in this manner?

    Here's the code I'm using to connect to my DB file
    Please Login or Register  to view this content.
    And here is the data from B24 and B25 which is referenced
    B24: \\server\data\shared\RelDB
    B25: ReleaseDatabase.accdb

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: ADODB Connection to Access DB stored on Office 365

    You can get the username using Environ("username") and incorporate that into the path.
    If posting code please use code tags, see here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Connecting Excel to Microsoft access using ADODB.Connection RS.Filter error
    By Rachel3003 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-25-2016, 06:34 AM
  2. ADODB Connection
    By kenny.fsw in forum Access Tables & Databases
    Replies: 12
    Last Post: 08-06-2015, 01:17 PM
  3. [SOLVED] Execute Stored Proc Using ADODB
    By NeedForExcel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-20-2015, 06:42 AM
  4. ADODB connection - Changing connection path via fileDialog
    By cajand in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2015, 08:06 AM
  5. Replies: 0
    Last Post: 06-01-2014, 12:52 AM
  6. Cannot Use ADODB.Connection to connect to an access database
    By Cardinalbags in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2012, 07:09 PM
  7. VBA and ADODB.Connection
    By AedanLee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-29-2010, 06:37 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1