Results 1 to 10 of 10
  1. #1
    Fish218 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    68

    Normalized?


    I've been working on normalization of my db (see attached relationship table). Am I on the right track? This is my first db so I'm learning as I go. Thanks for any suggestions!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    Looks like a good start.

    You might consider that the lookup tables don't have to use Autonumber field as the PK. Could just use the 'real world' codes as PK, especially if they are short. For instance, tblGearType has only the TypeID and Type fields. Type should be unique in this table, it could be the PK. That way these tables provide a standardized set of values that users can select from but by saving the more informative code value in tblCommGearCode will be easier to read. I NEVER set lookups in tables. When I view tables I want to see the actual value. Developers don't allow users to work directly with tables and queries, forms and reports are for data interface. Are you the only user of this db?

    At least the Type field should be set as Index Yes no duplicates.

    Here is a reference for standards to aim for http://access.mvps.org/access/tencommandments.htm
    I will admit I have broken a few in order to accomplish what I want.
    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
    Fish218 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    68
    There will be multiple people entering data on the database, but I will probably be the only one doing data analysis from it. If I switch my primary key to text, can it have spaces (e.g., Trawl Net)?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    Yes, it can. Should avoid special characters like & $ % # @ * " .
    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.

  5. #5
    Fish218 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    68
    I changed my PKs for the "Code" tables to text, updated the relationships, and updated tblCommGearCode. I now get an error message stating "You cannot add or change a record because a related record is required in table "tblFishSppCode". Referential Integrity issue?

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    Yes, changing PKs can be hazardous and must be done carefully. I hope you didn't decide to do it just because I said you could but that you thought it was what you wanted. It sounds you took the correct steps. Did you make the SpeciesCode field the PK in tblFishSppCode? What Jointype did you set the relationships to? Do you want to provide project for analysis?
    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.

  7. #7
    Fish218 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    68
    I changed the PK because I have so many code tables it would be much more informative to look at a table and see Alewife Trap Nylon Bottom than 32 3 2 1 and becuase the values in those tables are unique identifiers for each table. I changed the PK in tblFishSppCode and joined with a one-to-many relationship.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    Okay, still sounds like that should work. Guess I will have to see the project if you want to provide.
    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.

  9. #9
    Fish218 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    68
    I figured it out. I had the "bound column" in my form combo box still set to 1 (the Autonumber) rather than the column containing text.

  10. #10
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    Always the little things! Even if you still have the Autonumber field in table, no need for it in the RowSource.
    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. normalized forms
    By TheShabz in forum Database Design
    Replies: 0
    Last Post: 08-18-2011, 04:39 PM
  2. Create a form from a normalized database
    By nchesebro in forum Forms
    Replies: 2
    Last Post: 01-19-2011, 12:52 PM
  3. Form based on normalized database
    By nchesebro in forum Reports
    Replies: 2
    Last Post: 01-14-2011, 01:10 PM
  4. Creating Form from Normalized Tables
    By heathers in forum Forms
    Replies: 2
    Last Post: 09-10-2009, 03:43 AM
  5. Is this "Normalized"
    By JoshD in forum Access
    Replies: 0
    Last Post: 05-29-2009, 09:14 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