Results 1 to 11 of 11
  1. #1
    c.d.power's Avatar
    c.d.power is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Location
    Florida
    Posts
    44

    Is it considered bad design to use Look Ups for Table Fields?

    In several of my tables, I've used the Lookup function for some of the fields. The only thing I ever use is the Value List function. I manually type in the values I deem necessary and I give users the option to execute Value List edits if necessary. My thought process is they will know better than me which values are meaningful to them in most cases.



    I ask the question because I was reading an article about database normalization and it seemed that the suggestion was I should create a tables for these fields rather than use Lookups. Am I understanding this correctly?

    Thank you in advance for any advice on this.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Sounds like what you read was really advising against multi-value field.

    As for lookups, they don't have to involve multi-value field http://access.mvps.org/Access/lookupfields.htm - build combo or list box on form.

    Most experienced developers advise against both multi-value fields and lookup fields in table. I agree.
    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
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,793
    I second the motion. They are a crutch for two groups: those that don't know any better and those that don't care.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    c.d.power's Avatar
    c.d.power is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Location
    Florida
    Posts
    44
    Just to clarify, using the Combo Box / Value List as the Row Source is a bad idea? I've attached an example of what I've done.

    And if so, the appropriate alternative is to have a separate table that contains the Combo Box values I want for my DB? Is it good practice to create just one table that contains all Combo Box values for all tables and then to have a form where a user can edit those values as necessary?
    Click image for larger version. 

Name:	Example.JPG 
Views:	23 
Size:	74.3 KB 
ID:	38743

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    This is not so bad because there is no alias involved. The value you see is the actual value saved. Also, not establishing a relationship to a 'lookup' table. Even if I did build lookup in table I would not use the Lookup wizard, I would not select Lookup field type. I avoid all the wizards because they do things I don't like.

    Have a table if you want to allow end user more flexibility in what these values are.

    Maybe this will interest you http://www.mendipdatasystems.co.uk/c...ies/4594455053
    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.

  6. #6
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,793
    If that question is applied to a form combo, then not so much. An addition requires code or a redesign of the form control.
    If you're asking about a table, it matters not what the row source is when it comes to the reasons for not having it at all. Don't know what you read; this is what I usually offer on the subject

    http://access.mvps.org/access/lookupfields.htm

  7. #7
    c.d.power's Avatar
    c.d.power is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Location
    Florida
    Posts
    44
    This helps. Thank you for the quick replies! Marking thread as solved now.

  8. #8
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,793
    The answers seem to have overlooked a rather important point - that image represents a combo in a table. Editing directly in tables is not recommended, so if you follow that design principle, whether or not your pic represents something that is not so bad or downright vile is kind of moot.

  9. #9
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Right, users should not work directly with table/query, only form/report. All setting lookup in table really accomplishes is when form is created, dragging fields to form will allow Access to create the appropriate control with those settings for you. Which is actually a nuisance when building a report because comboboxes make no sense on report. If you later change the settings in table, they may or may not carry over to already created forms (usually get prompted to verify this).

    My practice is to do as little formatting in tables as possible. Do design on forms and reports.
    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.

  10. #10
    c.d.power's Avatar
    c.d.power is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Location
    Florida
    Posts
    44
    Quote Originally Posted by June7 View Post
    Right, users should not work directly with table/query, only form/report. All setting lookup in table really accomplishes is when form is created, dragging fields to form will allow Access to create the appropriate control with those settings for you. Which is actually a nuisance when building a report because comboboxes make no sense on report. If you later change the settings in table, they may or may not carry over to already created forms (usually get prompted to verify this).

    My practice is to do as little formatting in tables as possible. Do design on forms and reports.
    Thanks for clarifying. My DB is not designed so that users will work directly with tables whatsoever. I do have Split-forms which include the input fields and an editable version of the table on the bottom half of the form. However, the idea is that they would never go anywhere near the table. As for the combo boxes, I have set them up in the table so that, like you said, when I add the field to the form, the combo box is already existing.

  11. #11
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    How often do you need same combobox on multiple forms? If I really need another of same combobox, I would copy/paste from existing form.
    I still vote on the side of not building in table. Tiny bit of convenience is not worth the headaches they cause.
    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. Replies: 4
    Last Post: 08-27-2016, 03:25 PM
  2. Query Design - Calculated Fields
    By roarcrm in forum Queries
    Replies: 6
    Last Post: 06-26-2014, 12:14 PM
  3. Table Design: Fields with duplicate information
    By snowboarder234 in forum Access
    Replies: 3
    Last Post: 10-17-2012, 10:43 AM
  4. Table Design -- want to avoid a design that creates blank fields
    By snowboarder234 in forum Database Design
    Replies: 4
    Last Post: 10-08-2012, 10:13 AM
  5. Database design- need help relating fields
    By sebeckett in forum Access
    Replies: 5
    Last Post: 09-02-2011, 02:21 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