Results 1 to 15 of 15
  1. #1
    Nandu_7 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Aug 2016
    Posts
    9

    Table relation

    I have created three tables customer, order,product. All three have primar key unique ID. I have created relationship.
    Between customer table and order table and order table and product table.Have entered the data in customer n product table. When I try to enter data in order table the custid and product ID data is not shown which is already entered in both tables

  2. #2
    Micron is online now Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    You shouldn't be entering data into tables directly, unless maybe you have a complete understanding of db normalization and related records. Sometimes even then it is not advisable, and sometimes not possible. You should be doing this via forms. Based on your post, there is no relationship between the two tables you've added data to. If you insist on entering data this way, your relationships should include Cascade deletes and updates, but this is risky.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    You must enter the data via a parent/child form.
    is that what you're doing?

  4. #4
    Nandu_7 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Aug 2016
    Posts
    9

    Question

    Quote Originally Posted by ranman256 View Post
    You must enter the data via a parent/child form.
    is that what you're doing?
    No just tried to see whether the relationship is working with tables and the values show in the related table. Just sample tables with 3 records

  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,870
    You are missing a table based on the most generic Customer Order Product model

    Customer --->Order--->OrderDetail<----Product

    Get your tables identified and tested before going to Forms.

  6. #6
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    In reference to relationships:

    Quote Originally Posted by Nandu_7 View Post
    I have created three tables customer, order,product. All three have primar key unique ID. I have created relationship.
    Between customer table and order table and order table and product table.Have entered the data in customer n product table. When I try to enter data in order table the custid and product ID data is not shown which is already entered in both tables
    When you created the relationships, did you create a relationship between "custid" and "orderID"? If yes, then the relationship is wrong; it is a 1-to-1, not a 1-to-many (as it should be).

    The customer table "custid" field (the one) should link to the order table foreign key (FK) field, "custid_FK" (the many).

  7. #7
    Nandu_7 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Aug 2016
    Posts
    9
    Should I test the relationship by entering the data through forms

  8. #8
    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,870

  9. #9
    Nandu_7 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Aug 2016
    Posts
    9
    Actually I need to create a multiple choice question quiz for the team in Access using tables and forms. Every one appearing the quiz the data should be saved in access. what tables should I create in access

  10. #10
    Nandu_7 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Aug 2016
    Posts
    9

    Post

    Quote Originally Posted by Nandu_7 View Post
    Actually I need to create a multiple choice question quiz for the team in Access using tables and forms. Every one appearing the quiz the data should be saved in access. what tables should I create in access

    Can any one help me on this ? I have created the table in access Question table, Usertable & Option table.

  11. #11
    Nandu_7 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Aug 2016
    Posts
    9
    Can any one help me on this ? I have created the table in access Question table, Usertable & Option table. I need to create multiple choice question quiz. When the user login he should get the form showing the questions and 4 options. The selection option button value should get save in that userid. There are 20 questions in all.

  12. #12
    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,870

  13. #13
    Nandu_7 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Aug 2016
    Posts
    9
    Actually it was just an example I want to work on this I have started in access

  14. #14
    Nandu_7 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Aug 2016
    Posts
    9
    I am facing problem with relationship and queries

  15. #15
    Nandu_7 is offline Novice
    Windows 8 Access 2010 64bit
    Join Date
    Aug 2016
    Posts
    9
    Hi ranman pls can you reply on my latest post

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

Similar Threads

  1. Replies: 9
    Last Post: 03-08-2016, 03:25 AM
  2. Relation between tables
    By vincentsp in forum Forms
    Replies: 8
    Last Post: 02-03-2015, 08:53 AM
  3. relation ship
    By sarab565 in forum Access
    Replies: 4
    Last Post: 12-02-2011, 01:53 PM
  4. Replies: 1
    Last Post: 08-09-2011, 11:26 PM
  5. Relation in three different tables
    By kzdev in forum Access
    Replies: 1
    Last Post: 11-22-2010, 03:12 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