Results 1 to 6 of 6
  1. #1
    jssiadmin is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jun 2020
    Posts
    2

    Access a database from another file location via a form (instead of table link)?

    Is it possible to access a database from another file location via a form, instead of table link? I have a multitude of databases I need to link to one another in a method that is user friendly and controlled by the switchboard form.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    you could have user select the DB from a combo,
    then it would relink the tables to that chosen db.
    then run normal operations.

  3. #3
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142
    Maybe this is what you're looking for? https://www.youtube.com/watch?v=0Qi_...&index=21&t=0s

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    do you mean the whole database or just one table? If the latter, you can use something like this as the recordsource to your form

    SELECT *
    FROM sometable IN 'C:\otherdbname.accdb'

  5. #5
    jssiadmin is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Jun 2020
    Posts
    2
    Thanks for the replies guys.

    @kd2017: Not particularly but I can scour his channel for it.

    @Ajax: The whole database, yes. I've got multiple database files, which are connected to my console databases (form/record making), and I am trying to connect those consoles to an uberconsole that can access the entire database.


    I hope I'm making sense here. Not sure if it's even possible, but there must be some way of accessing the entire database from one console/file.

  6. #6
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    really depends what you mean by 'access a database'. And what you want to do once you've accessed it. And whether the databases are identical in terms of tables/field names etc

    Databases are data - i.e. tables. Are you saying you want to access the queries/forms/reports etc as well?

    Just another guess - look at the vba opendatabase command. Also consider using the msysobjects table to determine what the database contains

    whatever you do will require code.

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

Similar Threads

  1. Refresh Database if Connection to File Location is Interrupted
    By TheKillerMonkey in forum Programming
    Replies: 3
    Last Post: 02-27-2019, 01:00 PM
  2. Replies: 6
    Last Post: 10-14-2017, 11:06 AM
  3. Location of table so I can link it?
    By cloudforgiven in forum Import/Export Data
    Replies: 27
    Last Post: 09-07-2016, 06:05 PM
  4. Link to new database location
    By krhoover in forum Access
    Replies: 2
    Last Post: 06-19-2015, 08:34 AM
  5. Replies: 2
    Last Post: 12-27-2012, 09:37 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