Results 1 to 5 of 5
  1. #1
    Moshe is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2018
    Posts
    3

    Post Relationship model

    Hi Guys.

    i have some Problem and i would like some help.
    (i attach the file)

    i bulid a tree model:

    Product -> Model - > item

    For Exmple for Product table i have ID 1 AND 2
    ID 1 its Toyota when i click on details its take me to model and i want when i click model its take me to item but its take me to the specific item

    Product -> Model - > item
    Toyota - > corolla -> corolla 2018

    the problem when i click Toyota - > corolla its show me corolla 2018 and yaris but yaris is different model.



    thanks for help.
    Attached Files Attached Files

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    you dont really need the autonumber for Product
    Product itself can be the key. you are using מזהה, as the key, AND you have Product_ID in there too. Instead of these 3 fields, just use ProductName.
    same with Model.
    now, for ITEM, you should use and autonum....but again you are using 3 fields when 1 will do.

    link tProduct.ProductName to tModel.ProductName
    link tModel.ModelName to tItem.ModelName

    note: If ModelName cannot be unique, then you will need to use an autonum for Model.ModelID.

  3. #3
    Moshe is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2018
    Posts
    3
    thanks ranman.

    but If I leave it like that's what I can do to make it work ?
    i try THIS BUT it not working
    "[Product_ID]=" & [Product_ID] And "[Model_ID]=" & [Model_ID]

    מזהה = ID.




  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    use the key, מזהה = ID.
    the Keys are what links the fields together.
    you are using extra fields you dont need.

  5. #5
    Moshe is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2018
    Posts
    3
    its not working

    i change it to
    "[Product_ID]=" & [Product_ID] And "[Model_ID]=" & [Model_ID]


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

Similar Threads

  1. Help with data model/er diagram
    By Beanie_d83 in forum Database Design
    Replies: 4
    Last Post: 06-22-2016, 07:25 AM
  2. First Database Model with Table Design.
    By NightWalker in forum Database Design
    Replies: 6
    Last Post: 05-24-2016, 02:40 PM
  3. How does a subform fit into the object model
    By Access_Novice in forum Forms
    Replies: 1
    Last Post: 12-07-2015, 11:20 AM
  4. Is my ERD Model Correct
    By CementCarver in forum Database Design
    Replies: 7
    Last Post: 08-06-2013, 07:33 AM
  5. excel model that outgrew itself
    By canuck86 in forum Access
    Replies: 1
    Last Post: 04-10-2013, 11:54 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