+ Reply to Thread
Results 1 to 1 of 1

How Change the Source Path of access db and update queries in workbook (with VBA)

  1. #1
    Registered User
    Join Date
    12-12-2013
    Location
    turkey
    MS-Off Ver
    Excel 2016
    Posts
    4

    How Change the Source Path of access db and update queries in workbook (with VBA)

    Dear friends,
    I have been developing an application which records all my operation in an access db file. For the reporting part, I also use a workbook that connected the db file with querry and getting all necessary info from different tables that I created in access db.

    Since we will be working on multiple projects, in every single time starting the app, the db file is copied in our server together with the workbook as a new (but preserving the all contents and macros). Afterwards, I cannot update the source of access db (in the workbook) despite the fact that tried really hard with vba coding. Rather than doing this source address update manually (because evertime I need to goto querry properties --> Data source settings --> Change Source button and change the db address) which I cannot ask my users to perform, I am seeking a proper approach in vba to get this done. So, both db and workbook files are stored together in a diffent folder all the time when commencing a new project.

    I would kindly like to ask you professionals to guide me on this hard matter.

    Thank you all
    Last edited by vakbel; 11-08-2023 at 02:54 AM.

+ 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. Embedded Access queries in Excel - if the database moves, how to update queries?
    By Paul_mcc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2012, 07:52 PM
  2. [SOLVED] change data source for many queries at once?
    By Sam Raymond in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  3. change data source for many queries at once?
    By Sam Raymond in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. change data source for many queries at once?
    By Sam Raymond in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 AM
  5. change data source for many queries at once?
    By Sam Raymond in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  6. [SOLVED] change data source for many queries at once?
    By Sam Raymond in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. [SOLVED] change data source for many queries at once?
    By Sam Raymond in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. [SOLVED] change data source for many queries at once?
    By Sam Raymond in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-11-2005, 12:05 PM

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