Results 1 to 4 of 4
  1. #1
    blue22 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2014
    Posts
    2

    Multiple options based on a tree structure...

    Not sure the title is appropriate, I cant find another one.


    I am a novice with some experience in excel and very old experience with foxpro... I want to create a database with a table - name, country and another one with country, continent. When I enter a name in the first table I want to be able to assign that name to every country of a continent (to be able to select a continent, not only the countries individually) or be able to select only a few countries. I am interested in listing each country with its members, but a member can be part of several countries, or only one, or to all from a continent. The tree structure would be earth / continents / countries.
    Hope my analogy explains it all...
    What would be the best approach? Thank you.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    I don't know your background/experience but recommend you investigate ISO-3166-2 and ISO-3166-3.
    You really don't want to invent your own codes when these exist and are used by many organizations.
    Also for Countries and Regions you should look at these accepted standards
    http://unstats.un.org/unsd/methods/m49/m49regin.htm

    Good luck

  3. #3
    blue22 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2014
    Posts
    2
    Thank you, the country/continents is an analogy, I dont actually need countries, but it gave me the idea to use codes. Like the first 2 digits should be the "continent" index and the following 2 would be the country.
    I was wondering what the best approach would be for a database design, what relationships and what tables...

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Suggest you drop the analogy for the moment and tell us about the issue/opportunity you're really dealing with.
    Don't arbitrarily make a code
    Like the first 2 digits should be the "continent" index and the following 2 would be the country.
    .

    Here is a good source of database principles that is well worth the read. With database, one fact, one field and research Normalization.

    Here's a tutorial that will help you with understanding the "business" and designing your tables and relationships.
    Good luck

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

Similar Threads

  1. Replies: 5
    Last Post: 11-26-2013, 07:24 PM
  2. Tree View structure for BOM
    By arunhalyal in forum Access
    Replies: 1
    Last Post: 10-06-2013, 09:49 PM
  3. Query For the Tree Structure
    By Sibtain in forum Queries
    Replies: 8
    Last Post: 06-04-2013, 01:34 PM
  4. Single Form, Multiple Options
    By forrestapi in forum Forms
    Replies: 4
    Last Post: 06-30-2011, 07:09 AM
  5. Multiple filtering options in vba
    By eww in forum Programming
    Replies: 2
    Last Post: 09-28-2010, 01:46 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