Results 1 to 3 of 3
  1. #1
    snipe's Avatar
    snipe is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    287

    Button on a form to open a different database

    Hey guys,

    I'm sure this is super simple. I pretty much live in a "test" database that I have created, so I have been creating buttons to complete a bunch of my normal tasks. One of those tasks is to run a bonus program (located in another database). What would the code be to open a different database, and not closing the current one?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,825
    Open a database object in VBA and use Run method. http://msdn.microsoft.com/en-us/libr...ffice.11).aspx
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    snipe's Avatar
    snipe is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    287
    Thank you, sir.

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

Similar Threads

  1. Replies: 1
    Last Post: 03-02-2014, 01:31 PM
  2. Replies: 1
    Last Post: 05-31-2013, 08:53 AM
  3. Replies: 2
    Last Post: 04-01-2013, 04:23 PM
  4. Button to open form with a Where condition
    By Newbie2 in forum Forms
    Replies: 3
    Last Post: 08-07-2012, 01:19 AM
  5. cmd button to open form
    By stephaniehpcswf in forum Access
    Replies: 1
    Last Post: 02-23-2011, 04:46 PM

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