Results 1 to 8 of 8
  1. #1
    ScottishFi is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    28

    Linking multiple databases - is this a good idea?

    Hi there



    I need a steer on the best way to approach something. I have a split DB which contains all our company contacts, primarily used as an events invitation/attendance record. At the moment I filter contacts by team and send them Excel spreadsheets to say Yes/No on invites and then have a process to upload them again as an Append. But this does not work in practice as everyone changes contact details, deletes/adds people or my favourite - sends me back a completely different list in a totally different format. As I don't want to have to fix/update the data all manually this time I'm looking for a new approach.

    The main criteria is that I want each team to access and update only their own contacts. How best to approach this? I'm vaguely thinking:

    • Linked Excel spreadsheets with a locked format which automatically update DB tables. But how would I filter? A query that creates a table and link that table?
    • A DB for each team which is linked to the main one - as above not sure how I filter?
    • Or I have a log-in screen that checks passwords, should I add a team column to my staff table and filter on that at log-in? Just sticking with the single DB? This is blue-sky thinking, I don't know VBA and had to copy the code for my login screen so this option may be beyond me :-)


    Any thoughts on best practise or absolute no-nos would be welcome, just to start me off down the right track

    Ta v much

  2. #2
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,002
    You could have a small "external" database they could edit just their records in and you then update your master records, the problems you'll have is that distributing it is an issue, you'll have to zip it if you email it...
    Unless you could rely on them to collect them from a network share?

    Locked spreadsheet is probably the simplest route. Get someone to sign off on a "Send this back or nothing" company policy.

    End users are always a problem. Life would be much easier without them
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  3. #3
    Join Date
    Apr 2017
    Posts
    1,679
    You must have:
    a) in your contacts table some field, which allows to assign contact to certain team (one team per contact);
    b) or you must have a separate table, where you can assign various contacts to teams (like tblTeamContacts: TeamContactID, TeamID, ContactID where TeamID + ContactID are components of unique index - same contact can be assigned to several teams).

    And you have to split the database to front-end and back-end. For every team you create it's own front-end, where instead of whole contacts table only contacts assigned to this team are linked (p.e. you can create for every team a view in backend DB like
    Code:
    SELECT c.* FROM tblContacts c WHERE TeamID = c.ThisTeamID
    or
    Code:
    SELECT c.* FROM tblContacts INNER JOIN tblTeamContacts tc ON tc.ContactID = c.ContactID WHERE tc.TeamID = ThisTeamID
    or
    Code:
    SELECT c.* FROM tblContacts c WHERE ContactID In (SELECT tc.ContactID FROM tblTeamContacts WHERE tc.TeamID = ThisTeamID)
    , and instead of tblContacts you link this view to team front-end).

  4. #4
    ScottishFi is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    28
    I think I see what you mean, is this code creating a query in the Backend for each team? Then I link the query to the team front end rather than the full contacts table?

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    Why is Excel involved?
    Watch this free youtube by Steve Bishop on User Access for ideas.

    It might be helpful to readers if you told us more (even an example) of what is involved and what you really need.

  6. #6
    Join Date
    Apr 2017
    Posts
    1,679
    Quote Originally Posted by ScottishFi View Post
    I think I see what you mean, is this code creating a query in the Backend for each team? Then I link the query to the team front end rather than the full contacts table?
    Yes - you create a saved queries for ech team. Or you use this (edited) query text as Source for form instead of tblContacts (in which case you link the full tblContacts, but you use only team's contacts from it).

    As always - in MS programs are always at least 3 different ways to do things

  7. #7
    ScottishFi is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    28
    Great, thanks. I think I had that idea roughly in my mind but was overcomplicating it. Really it's just a series of front ends accessing different queries. Ideal, I can manage that!

  8. #8
    ScottishFi is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    28
    Thanks for replying. I've used this before to help build a login for a different DB but am a bit daunted with trying to restructure the code. To be honest, I think I'm avoiding having to restructure what's already in place - I have to deliver this by tomorrow so needed a quick fix! Will bear it in mind for future development tho. cheers.

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

Similar Threads

  1. Is hardcoding data a good idea?
    By zashaikh in forum Forms
    Replies: 9
    Last Post: 02-23-2017, 12:08 PM
  2. Linking data between databases
    By Back2Basics in forum Access
    Replies: 1
    Last Post: 07-25-2013, 01:01 PM
  3. Need help with linking databases
    By matt1121 in forum Access
    Replies: 2
    Last Post: 01-11-2013, 10:56 AM
  4. Replies: 3
    Last Post: 09-07-2011, 03:17 PM
  5. Need help linking access databases
    By AlphaNumeric in forum Access
    Replies: 2
    Last Post: 05-18-2010, 04:08 PM

Tags for this Thread

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