+ Reply to Thread
Results 1 to 2 of 2

VBA to switch "back ends"

  1. #1
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    VBA to switch "back ends"

    Hi all,

    I have a rather large split database, when developing code I obviously have to be extremely careful not to affect the live data so I have a test version locally however this involves creating and testing in the test version then exporting the relevant changes to the live.

    What Id like to do is have the ability to switch the backend links via an option in an admin area so maybe a button to switch from live data to test version.

    This would then break the existing table links and create the new links to the alterantive version, allowing me to develop and test in the live front end without fear of breaking anything (it would also allow us to have a training version available to new staff).

    Can anyone give me an hints towards how to do this? is there a few lines of VBA to do it or do I have to code in the deletion of all linked tables and then re-link them to version b?

    Also however, can anyone see any downsides to this approach that I might have missed?

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,176

    Re: VBA to switch "back ends"

    I have a form with a combo box, hooked to a table that has the paths to prod and test dbs.
    It shows TEST, or PROD.
    [DB], [PATH]
    TEST, test db path...
    PROD, production db path...

    User picks the db, clicks CONNECT button ,then the code resets the paths to the tables...
    ReLinkDB cboBox

    Please Login or Register  to view this content.

+ 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. Replies: 0
    Last Post: 04-22-2014, 10:59 AM
  2. Replies: 3
    Last Post: 01-02-2014, 02:15 PM
  3. [SOLVED] Blank cells where formula "ends"
    By Tinwelende in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-17-2013, 04:46 PM
  4. Find specific text at end of cell (i.e. Ends in "-2")
    By ghladik in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-14-2012, 12:51 PM
  5. Replies: 7
    Last Post: 11-28-2006, 04:19 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