Results 1 to 7 of 7
  1. #1
    Kennyej is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jul 2015
    Posts
    4

    One form multiple databases

    Background: I taught myself excel from scratch. I would say I am better at it than the average excel user. However, I know there are mountains I have not yet began to ascend. I've started a new job that has to do with accounting and now I want to figure out access. It's not hard: databases, forms, queries... Their relationships and uses. I understand the concept and can google how to do specific things if I can't figure steps out.

    QUESTION 1: How do I create a form that I can enter data into different databases with depending on the vendor. Every database has the same fields: vendor, PO, cost, invoice date, cost code. It's just that different vendors are in different databases for a reason.

    Thanks for taking the time to read this post.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    Do you mean 'databases' or 'tables' (within 1 database)?
    if databases, then can you consolidate them? why different databases?

    you can LINK the different tables in the different databases.
    this way they are all in 1 database , but separate tables.

  3. #3
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,445
    How do I create a form that I can enter data into different databases with depending on the vendor.
    you have one form and just relink the linked tables to a different backend - google 'linking by vba' to find out more.

    It's just that different vendors are in different databases for a reason.
    must be a good reason, it is probably the most inefficient way of doing it

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,956
    Unless you expect database to exceed 2GB size limit, there is probably no justification for separate files. However, if they use autonumber PK, combining them now would not be a simple task. So have to live with the complication of multiple backends.

    Code to reset table links: http://forums.aspfree.com/microsoft-...ue-323364.html
    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.

  5. #5
    Kennyej is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jul 2015
    Posts
    4
    The document was created by my predisesor and I agree that multiple tables is inefficient. So let's say I just add an additional column(pardon the excel terminology) and combine them into a signal database. To make the form easier I would use combo(drop down) boxes. Is it possible to make it so that if you select one option in the first combo box that the next combo box will only list applicable choices? For example:

    Combo box 1: outside, inside

    Combo box 2: car, oven, lawn mower, washing machine

    If I select 'outside' in combo box 1; then only car and lawn mower are available for selection in combo box 2.

    If I selexr 'inside' in combo box 1; only oven and washing machine are available for selection.

    Thanks for he quick responses!

  6. #6
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Yes. This is commonly referred to as "Cascading combo boxes".

    Attached is an example of a dB I created years ago with multiple cascading combo boxes.
    There is also a form with cascading List boxes.

    It was a learning experience for me.....

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,956
    And if you want a video to guide you http://www.datapigtechnologies.com/f...combobox2.html
    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.

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

Similar Threads

  1. Switching between multiple databases
    By developer11 in forum Access
    Replies: 2
    Last Post: 11-16-2020, 05:56 AM
  2. One database versus multiple databases
    By jhanson2 in forum Database Design
    Replies: 5
    Last Post: 02-18-2015, 12:43 AM
  3. Connect Multiple Databases
    By bouschie in forum Database Design
    Replies: 3
    Last Post: 05-06-2011, 10:16 AM
  4. Multiple databases and 1 switchboard
    By makelesik in forum Database Design
    Replies: 2
    Last Post: 01-05-2011, 09:44 AM
  5. VBA SQL Query of Multiple Databases
    By VBA_Rookie in forum Programming
    Replies: 0
    Last Post: 12-02-2008, 12:32 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