Results 1 to 8 of 8
  1. #1
    Bill Sperry is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    5

    Possible Relationship Issue?


    I have a table that uses an identifying number for each customer. I also have an identifying number for a geographical area (1-8) When I create reports etc, I need the geographical number to be automatically populated with the customer ID. Note: (I don't see how this makes a difference, but the customer ID is a 4 or 5 digit number. It is unique, but not sequential). I am new to access and have multiple tables created and/or to create. Iuse these tables in a HIPAA/FISMA secure environment and so each table must be limited to 3 or 4 fields. Thank you.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Does some part of the customerID include the geographic area code? I doubt this and then there is no relationship between the customer and area. Access can't read minds. If it does include the area then there is no need to populate another field. The area can be extracted from the ID whenever needed.
    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
    Bill Sperry is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    5
    Quote Originally Posted by June7 View Post
    Does some part of the customerID include the geographic area code? I doubt this and then there is no relationship between the customer and area. Access can't read minds. If it does include the area then there is no need to populate another field. The area can be extracted from the ID whenever needed.
    No, the geographical area is not a part of the customer ID. I need to lock the 2 fields together so that whenever I refer to or need the customer ID, the geographic area will populate with it.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    That requires a table. The geographic area can be an attribute of the customer and include a field in the customer info table with that value or it can be an attribute of address (tied to city, county, state, or zip) and have an addresses table. Save the address ID to customer table. Whichever, must select something for the customer info record. Then the value will be available whenever the customerID is referenced as foreign key in other records. Just join tables in query.
    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
    Bill Sperry is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    5
    I understand the use of tables. I have created the tables with the nescessary data as fields. What I need is a way to lock the Customer ID# and the geographical # together so that when I am using other tables, forms, reports, etc. they remain locked together. Example: I need a report that breaks down daily field appointments by geographical area (simular to zip code). When I use the customer ID, I need the report to automatically recognize and report the geographical code. I believe I have constructed the tables properly, but when the report or query generates it still wants to give me to options (1-8) for the geographical code rather than the absolute that is tied to the customer.

  6. #6
    Bill Sperry is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    5
    I believe I have found my answer. By creating a query with the proper fields from the customer table, and then using that query instead of the table to populate additional forms...does this make sense? thank you!

  7. #7
    Bill Sperry is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    5
    I believe I have solved my problem, but I don't see how or where to mark this thread complete.

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    It's on the Thread Tools dropdown above the first post.
    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. Replies: 6
    Last Post: 03-09-2012, 01:07 PM
  2. Relationship issue
    By Calgar99 in forum Access
    Replies: 4
    Last Post: 12-14-2011, 07:36 PM
  3. relationship issue or filter by subform?
    By flwrgrl in forum Forms
    Replies: 9
    Last Post: 07-14-2011, 02:07 PM
  4. Relationship screen Issue!
    By Lincoln in forum Access
    Replies: 8
    Last Post: 07-14-2011, 04:16 AM
  5. Replies: 1
    Last Post: 03-31-2010, 11:57 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