Results 1 to 7 of 7
  1. #1
    Huddle is offline Competent Performer
    Windows XP Access 2010 64bit
    Join Date
    Jun 2010
    Posts
    300

    Copy VBA from one database to another


    I have a database that loss all of the VBAs. I have a backup to the database that shows the VBAs. How can I copy the VBA from one database to the other.

    Note: I can't use the backup because I've entered a lot of data since it was backed up.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    21,283
    Sounds like it's not split, which is your first mistake. I'd use the backup but delete the tables and import them from the other.

    https://support.office.com/en-us/art...3-51b1d73498cc
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    memairport is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    3
    What causes VBA to disappear from a form? I have had this occur twice now and had to import forms again.

    Last question: have multiple users of same Access dbase on the same network drive. Can multiple users use the same form at the same time or will that form indicate it is in use/locked ?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    21,283
    As discussed in the link, users should not share the file. It will corrupt sooner or later, and could be the cause of your problems. Each user should have a copy of the front end on their computer. Failing that, they should have their own copy on the server.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    memairport is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    3
    I like the idea of placing all of the user front ends on the network (about 12 users total). Can I place the front end in the same folder as the back end? The split only creates one front end file....that I copy and place on each users' desktop or laptop?

    I am trying to allow more than one user at a time - 12 users total but probably only 3 or 4 max at a time due to shift work.

    Is there a downside to placing the FE on the same network drive and folder as the BE vs placing FE on individual desktops?

    Lastly, is it unwise to have a FE on a laptop that connects to server from a vehicle via a 4G VPN connection. Connection is occasionally dropped by the 4G phone carrier. Will this corrupt the BE, or just the FE, or both? I have lost all VBA too when 4G or VPN disconnects. Dbase not split yet but will be this week based on comments in this forum.

  6. #6
    memairport is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    3
    Disregard my questions...your earlier supplied the answers I needed. Thank you.

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    21,283
    Sorry, I'm wrangling grand kids. Glad you got it sorted, and welcome to the site by the way!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 4
    Last Post: 05-25-2017, 06:07 AM
  2. Stand alone exe for a database copy
    By Liviu in forum Programming
    Replies: 2
    Last Post: 03-27-2015, 07:34 AM
  3. Copy/duplicate database
    By Mverm0 in forum Access
    Replies: 7
    Last Post: 03-11-2015, 09:57 AM
  4. Replies: 1
    Last Post: 11-03-2010, 10:41 AM
  5. Replies: 4
    Last Post: 08-12-2010, 08:38 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 - Senior Forums