Results 1 to 5 of 5
  1. #1
    Ryan Williams is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    3

    Can I use info from one table (like a unique ID) to generate a list of records (like addresses)?

    Hi all - first post here. I've never used Access and I'm struggling with trying to explain my desired result.



    I have a list of unique IDs generated by running a query with specific parameters.

    I need to take that list of unique IDs and feed it back into the database, to receive additional information (in this case, addresses).

    I have no idea how to do any of this.

    I have a vague idea how to run a query, but not how to input a spreadsheet of IDs and ask the database to return the associated sets of tables.

    Any assistance would be greatly appreciated.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    The "IDs" need to be in more than one table. As Primary Key in one table and Foreign Key in another. Then build query that joins tables on the common fields.

    Are these "ID" values in the table of addresses? What parameters did you use to generate the IDs in spreadsheet?
    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
    Ryan Williams is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    3
    Quote Originally Posted by June7 View Post
    The "IDs" need to be in more than one table. As Primary Key in one table and Foreign Key in another. Then build query that joins tables on the common fields.
    You'll have to forgive me; I really don't speak the language and I have no idea what any of that means. I think we can work through it though.

    Quote Originally Posted by June7 View Post
    Are these "ID" values in the table of addresses? What parameters did you use to generate the IDs in spreadsheet?
    The ID's are data entered by us to uniquely identify each "master" record. Take a look:

    Click image for larger version. 

Name:	Capture.JPG 
Views:	6 
Size:	78.2 KB 
ID:	18419

    In the above image, I have a sample "catch-all" query that lists all foundations (we're fundraisers) and all their relevant information. The field with the key is "FoundationID". That's what I mean by Unique ID.

    We've had a severe proliferation of queries over the years with no manager, and right now we have a bunch of excel spreadsheets with thousands of rows that only have pieces of this information, namely the FoundationID and Organization fields. I want to de-duplicate the information (in excel).

    So, my plan is to take the spreadsheet with the FoundationID field filled in, and run it through Access to get the rest of these fields to match.

    I'm aware of the use of append queries to accomplish similar goals, like modifying lots of records based on a field like that. But I don't want to modify the records. I just want to get addresses for them based on that one field.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Understanding use of primary and foreign keys is basic to relational database concepts.

    Not sure I understand your issue.

    Set link to the spreadsheet. Use the link like a table (except can't edit). Build query with the link table and the Foundations table. This will match the addresses to the IDs in the link table.
    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
    Ryan Williams is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2014
    Posts
    3
    Quote Originally Posted by June7 View Post
    Understanding use of primary and foreign keys is basic to relational database concepts.

    Not sure I understand your issue.

    Set link to the spreadsheet. Use the link like a table (except can't edit). Build query with the link table and the Foundations table. This will match the addresses to the IDs in the link table.

    Like I said in the first post, I've never used Access. That doesn't mean I'm a database admin who has never used access, it means I am a person who has never used Access. Truly, my issue is that our organization has operated this database for a decade without ever hiring a person who understands even the most basic concepts of database management or operation. I'm attempting to get a foothold with this example, and I think your guidance will help set me in the right directions. Thank you.

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

Similar Threads

  1. Replies: 3
    Last Post: 10-25-2012, 09:37 PM
  2. Replies: 2
    Last Post: 05-21-2012, 08:46 PM
  3. Replies: 8
    Last Post: 03-16-2012, 01:07 PM
  4. Replies: 1
    Last Post: 09-12-2011, 10:15 AM
  5. Replies: 4
    Last Post: 08-01-2011, 04:24 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