Results 1 to 9 of 9
  1. #1
    Ashley25 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Posts
    12

    Linking records

    Hello,

    I'm new to Access and recently had a project assigned to me that i'm not sure how to complete. The thing that i keep getting stumped on is trying to link specific existing records to a different table.



    For example I have a table that is for a certain security control, lets call them Control1 and Control2, each control has security information for them such as the person in charge of the control and the parameters for the control. I'm trying to figure out how to take the name of the person in charge of each control from the control table and link it to a separate table that will be for all the names so for each control i can compare the names of the people in charge to the other controls.

    Then for the parameters and the description of each parameter I want to do the same. For each control there are varying parameter. For Control1 there are 3 parameters and for Control2 there are 4 parameters. Is it possible to take those parameters and the descriptions of each and link them to another table so they will all be in the same field?

    This is what i'm hoping the linked table will look like so when the description is added in the main table it will also upload to this table.
    Click image for larger version. 

Name:	Capture.PNG 
Views:	9 
Size:	7.4 KB 
ID:	17802

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    What is a 'security control'? What is this database for?

    Primary and foreign key fields are used to associate records of related tables.

    Don't include repetitive info in data. Why repeat "Parameter C-" in every record? Why have the colons?
    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
    Ashley25 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Posts
    12
    Sorry this is a database that will be used in a system security plan template. My bosses just gave me a general idea of what they want to be put into the database but not what they plan to do with it. Is that information important/needed to figure out how to do this link?

    I'll go back and take out the repetitive information I see that it is not really needed.

    Is it possible for me to link the Parameter field and the Description field from these two tables

    Click image for larger version. 

Name:	Capture4.PNG 
Views:	6 
Size:	6.3 KB 
ID:	17806 Click image for larger version. 

Name:	Capture2.PNG 
Views:	6 
Size:	6.3 KB 
ID:	17804

    and have them link to a table that looks like this

    Click image for larger version. 

Name:	Capture3.PNG 
Views:	6 
Size:	6.9 KB 
ID:	17805

    So when the descriptions are added/updated in the original table's fields they will update in this table?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    I expect that information will be important to you in designing db.

    Why do you have two identical tables and not 1 table?

    The dataset in the third image could be achieved with a UNION query using the two tables, except for the ID field. The result is essentially the 1 table should have to begin with.
    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
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Why do you have two tables for the security controls??? Are the structures different? They look the same..

    I would guess you didn't sit down with paper and pencil (or whiteboard) and design the table structures and relationships.

    Can you explain what you are trying to do in plain English? Don't worry about database terms... Pretend we met in the park and tell me about the project.


    And welcome to the forums

  6. #6
    Ashley25 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Posts
    12
    Each of the tables are for different controls that i have to connect them to later but that's not what i'm concerned with.

    For the UNION query there is a SQL required and I'm very very new to all this so I'm not sure how to go about doing that. I apologize for how confusing what I'm asking is. I've never worked with Databases before and have no idea what I'm doing here.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    I still don't see why you have multiple identical structure tables. The tables are for what controls and how do you plan to 'connect' them?

    Why do you then want to combine the tables? There is no wizard or designer for UNION query. Must type into SQL View of query builder.

    Maybe this will help you http://www.rogersaccesslibrary.com/
    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.

  8. #8
    Ashley25 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2014
    Posts
    12
    So there are several different security controls for this report. Right now I'm only focusing on two of them. For each control there are several Sections of Control information

    This is the table that I'm using from the word document for just one of the controls:

    Click image for larger version. 

Name:	Capture5.PNG 
Views:	5 
Size:	15.0 KB 
ID:	17807

    Right now I'm just focusing on the parameters for the first two controls.

    So first off I'm creating a table for each of the controls but I want there to be one large table that has all the parameters and their descriptions listed in one table so it looks like this in the end

    Click image for larger version. 

Name:	Capture3.PNG 
Views:	5 
Size:	6.9 KB 
ID:	17808

    Does that make more sense?

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Separate tables does not make sense. Use one table and filter the records as needed for each 'control'.

    I am still clear on what a 'control' is. Is this a business process or policy?
    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. Linking Mutiple Records to Single Records
    By LukeJ Innov in forum Access
    Replies: 3
    Last Post: 04-23-2013, 08:59 AM
  2. Trouble linking records
    By kruseanderson in forum Access
    Replies: 9
    Last Post: 04-16-2013, 06:12 PM
  3. Linking records
    By Joe_A in forum Database Design
    Replies: 3
    Last Post: 11-04-2011, 12:36 PM
  4. Linking Records
    By timryder in forum Access
    Replies: 6
    Last Post: 09-08-2008, 04:00 PM
  5. Linking Multiple records
    By rricci@marcct.org in forum Programming
    Replies: 0
    Last Post: 02-14-2008, 09:18 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