Results 1 to 4 of 4
  1. #1
    soprano is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2014
    Posts
    2

    Relational Tables

    Hello I am new to the forum!

    I have a problem and together that is due to relational tables!
    I have the following table structure!


    tbl_floor - name and description;
    tbl_bookshelf- name and description;
    tbl_shelf- name and description;
    tbl_box - name and description;

    I need that when you insert a new box in the same table tbl_box allow me the following!

    Choose the floor, on the bookshelf column appears only shelves that are on the floor I chose earlier! By choosing to stand only are loaded in the column corresponding to the shelf bookcase that chose above!

    To do this type of database just me this table structure? Or need something more?

    Thanks to all

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Need a field in tbl_bookshelf for the floor ID.

    Need a field in tbl_shelf for the tbl_bookshelf ID.

    Need a field in tbl_box for the tbl_shelf ID.
    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
    soprano is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2014
    Posts
    2
    Thanks for reply!

    But how i use this field? I created id in all tables!

    Thanks

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    This field will store the value of primary key field from related table. This will be the foreign key field that will connect to the primary key field of related table. This is how relational database works. Tables are related by fields with common data - the primary key in one table and foreign key in other table. Understanding keys is critical. Maybe this will help http://www.rogersaccesslibrary.com/
    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. Problem linking two tables(relational)
    By Hairy in forum Access
    Replies: 14
    Last Post: 09-22-2012, 06:28 PM
  2. Creating relational links between tables
    By NancyLoc in forum Import/Export Data
    Replies: 2
    Last Post: 04-10-2012, 01:38 AM
  3. Relational tables - again
    By BarbT in forum Access
    Replies: 6
    Last Post: 10-31-2010, 10:28 AM
  4. Relational tables help
    By BarbT in forum Access
    Replies: 5
    Last Post: 10-21-2010, 09:03 AM
  5. Relating 2 Tables - Relational Problem
    By jeng in forum Database Design
    Replies: 5
    Last Post: 04-01-2010, 09:25 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