Results 1 to 6 of 6
  1. #1
    arrudac30 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Posts
    12

    Question Relationships ID's and fields...

    Hi all.

    I have setup two tables.

    Table 1 = customerT
    Table 2 = countyT

    Table 1 = customerT = Fields are =
    • ID (PK) auto generate number
    • FirstName
    • LastName
    • Address 1
    • Address 2
    • PostalCode
    • County
    • Country


    Table 2 = county = Fields are =
    • ID (PK) auto generate number
    • County


    Relationships created are Table 2 = ID (1 to many) to Table 1 = County

    The issue I'm having is that I can't enter in the customer table county field, the word "Norfolk" which is the description of the county for record 1. It seems I must enter 1 and not Norfolk. This is not good as one would thought Norfolk is the county, not 1.

    But again, I can't make the relationship between Table 2 = County to Table 1 = County.

    How would one go past this? I mean, anyone reading county 1 means nothing.



    Kind regards,
    Albert

  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,643
    Options:

    1. set County field in CustomerT as a number type and save the ID from CountyT as foreign key

    2. remove ID from CountyT and save the County text value into County field of CustomerT
    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
    arrudac30 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Posts
    12
    Thanks June7.

    Learning very slowly.

    I have created no a drop-down list for Title and County. This has created a relationship but different than the one before (1 to many).

    Now, if I type something else that is not in the countyT and titleT, it will still accept with no error.

    Many thanks for helping.

    Kind regards,
    Albert

  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,643
    Issue resolved?
    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
    arrudac30 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Posts
    12
    Quote Originally Posted by June7 View Post
    Issue resolved?
    Yes, sorry.

    Regards,
    Albert

  6. #6
    arrudac30 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Aug 2015
    Posts
    12
    Hi.

    A copy of it is attached, if anyone could give it a look and their thoughts on it.

    Many thanks.

    Regards,
    Albert
    Attached Files Attached Files

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

Similar Threads

  1. Need Help With Relationships
    By Gary Childress in forum Database Design
    Replies: 3
    Last Post: 01-31-2015, 04:02 PM
  2. Explicit Relationships and Implicit Relationships
    By Dazza666 in forum Database Design
    Replies: 2
    Last Post: 07-17-2013, 02:11 AM
  3. Replies: 2
    Last Post: 04-18-2013, 05:56 AM
  4. Relationships
    By teza2k06 in forum Database Design
    Replies: 1
    Last Post: 03-08-2013, 03:23 PM
  5. Replies: 0
    Last Post: 06-15-2012, 05:58 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