Results 1 to 6 of 6
  1. #1
    FMAlanbrooke is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    8

    Entering data only once after normalisation

    Hi, I understand how to normalise a table but what I don't understand is how I get to enter data only once for related tables. I'm designing a military history database so I have, for instance, a unit table and a commander table. So I put a commander foreign key in the unit table and I enter all the data about the commanders in the commander table. OK so now I have a lot of information about the commanders in the commander table and in the unit table I have nothing about which unit has which commander. Does all this suppose that once you normalise the data, you create a form that is used to enter the unit data and the commander data simultaneously so that you can represent which unit has which commander (and only have to do it once)? Or do I have to look up the commander codes and enter them separately into the unit table (surely not)? There are too many commanders to use a lookup table ( I assume a lookup table with more than about 10-15 entries loses its usefulness).



    I looked for an Access database design that could model a World War 2 military hierarchy but was surprised to find it unobtainable.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I'm confused (not unusual). You mentioned having a field with the commander FK in the unit table. Doesn't that give you "which unit has which commander"? On a form to enter unit data, I would expect to have a combo box bound to that FK field that got its selections from the commanders table.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    FMAlanbrooke is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    8
    Quote Originally Posted by pbaldy View Post
    I'm confused (not unusual). You mentioned having a field with the commander FK in the unit table. Doesn't that give you "which unit has which commander"? On a form to enter unit data, I would expect to have a combo box bound to that FK field that got its selections from the commanders table.
    I can see that this would seem a pretty strange sort of question to someone who knows Access really well but I don't see anything happening when I put a foreign key in a table (and connect it). Thanks, does creating the form as you suggest mean that the combo box uses the commanders table as a lookup table, and you have to select them that way? What is the recommended procedure to fill out the data, to not enter any data at all until you have created the form including the combo box, or to fill out the commanders table first, then fill out the unit table via the form?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    What do you expect to happen? Basically having the FK there allows you to include both tables in a query and return values from both for forms and reports.

    Yes, the combo would use the commanders table as a lookup table. You can select or simply type in a value if you know it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    FMAlanbrooke is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2014
    Posts
    8
    Thankyou! There is so much fuss in database design tutorials about the tables that you expect to see some change in the tables if the database is designed properly - clearly there should be more emphasis on designing the forms etc and their content as a means to connect the tables.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help and welcome to the site by the way!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Normalisation Query: Which is correct?
    By tim_tims33 in forum Database Design
    Replies: 5
    Last Post: 04-20-2013, 11:31 AM
  2. Help with Normalisation Process
    By supermessiah in forum Database Design
    Replies: 2
    Last Post: 02-26-2013, 12:36 PM
  3. Normalisation
    By developer in forum Database Design
    Replies: 2
    Last Post: 08-16-2011, 01:47 PM
  4. Normalisation
    By gary223 in forum Access
    Replies: 6
    Last Post: 04-06-2011, 05:03 PM
  5. Normalisation and Relationship Problem
    By dromorkid in forum Database Design
    Replies: 3
    Last Post: 02-05-2009, 04:04 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