Results 1 to 7 of 7
  1. #1
    sdel_nevo is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402

    Split Database by VBA code

    HI Guys

    I was wondering, is it possible to split and access database by using vba code?

    for example

    would it be possible when a button it clicked that your able to browse to a network location, once that folder location is selected the database is split then all the tables reconnected automatically

    I would love to try to do this if it's possible



    Steve

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    no. split it manually.
    no need to automate it.
    split it then send the FE to the users.

  3. #3
    sdel_nevo is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402
    Hi Ranman256

    that's what I do now, I just wondered if this was even possible

    many thanks

    steve

  4. #4
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Splitting the database is a "one-time" task (once a database is split, it is split).
    So there really shouldn't be any need to automate a one-time task.

    If you have a number of databases that need to be split, I would be hesitant to automate anything like that. I think you want to do each one, one at a time, to monitor it and make sure that the split works properly without any issues or errors.

  5. #5
    sdel_nevo is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402
    Hi JoeM

    Many thanks for the advice
    Steve

  6. #6
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by JoeM View Post
    ...you want to do each one, one at a time, to monitor it and make sure that the split works properly without any issues or errors...
    This is the most important part of Joe's post...there are many things that can prevent the Splitting of a Database, and one or more of these things occur, the attempt to automate the operation would fail and I suspect that you wouldn't be aware of it.

    There are a number of hacks on the web to alleviate some of the 'pain' of updating the Front Ends of distributed DBs. Here's guide to one of them

    Articlee on Tony Toews' Auto Front End Updater

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  7. #7
    sdel_nevo is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402
    Hi MissingLinq

    that's great, many t hanks and sorry for the late reply
    Steve

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

Similar Threads

  1. Replies: 4
    Last Post: 11-27-2013, 09:51 AM
  2. Replies: 2
    Last Post: 06-06-2012, 01:04 PM
  3. Code to sort data shown on a split form
    By meissnerb in forum Programming
    Replies: 1
    Last Post: 05-03-2012, 04:34 PM
  4. Code to call Split Form View Datasheet
    By ahightower in forum Programming
    Replies: 1
    Last Post: 07-28-2011, 04:57 PM
  5. Replies: 2
    Last Post: 01-27-2011, 08:04 AM

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