Results 1 to 10 of 10
  1. #1
    Frankie is offline Novice
    Windows 11 Office 365
    Join Date
    Sep 2023
    Posts
    18

    combo boxes on forms vs look ups tables


    OK, I have learned a bit about the "bad" look up tables, and how they an eventually mess some things up. However, the nice thing about them is that if you have the multiple forms, with same combo boxes options, if you refer to look up tables, all you need to do to update both combo boxes is update the one table. If I create combo boxes and manually enter them (instead of look ups), will I have to go to multiple forms to update them all? Seems redundant. Am I missing something?

  2. #2
    Edgar is offline Competent Performer
    Windows 8 Access 2016
    Join Date
    Dec 2022
    Posts
    274
    I think what people often find bad is lookup fields, not lookup tables. Lookup tables are good, they're tables to get information for your combo boxes or listboxes, whereas a lookup field, which is something you configure at table design, instead of form design, may present a bunch of issues, as mentioned in here:
    http://access.mvps.org/access/lookupfields.htm

    I don't use lookup fields, I don't like datasheet views either, so I don't use any of them, but the evil one is the lookup field. I prefer to use forms.

    Forms good. Lookup tables Good. Form combos Good.
    Datasheet views ok. Lookup fields bad.
    Last edited by Edgar; 09-17-2023 at 02:33 PM. Reason: datasheet views are not that bad, i don't like them though
    Please click on the ⭐ below if this post helped you.


  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    There is no "vs" involved. Comboboxes use lookup tables. Lookup tables are not "bad" - lookup fields are "bad".

    Related thread https://www.accessforums.net/showthread.php?t=88688
    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.

  4. #4
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,801
    Frankie, this distinction was made in post 5 of your other thread.
    I see nothing wrong with datasheets per se. There are cases where other form views are better but to label them as bad is - well, just bad.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    Frankie is offline Novice
    Windows 11 Office 365
    Join Date
    Sep 2023
    Posts
    18
    ok... ah... no one has answered my question. Would I have to update ALL forms that have same combo box if I entered them in manually. I had to get rid of look ups to make my report right. Or is there a way to have look up tables just go to forms, with unbounded fields for query search criteria from said form? But would reports still return number instead of text? I guess I'll have to play around with it and see myself... but first question is still:

    Would I have to update ALL forms that have same combo box if I entered them in manually.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Properly constructed report will show text, not ID numbers. We have described two methods to accomplish.

    I answered in post 33 of your other thread: "Easier way is to use lookup table as source for combobox list. Need to add a new item - just enter a record in table, otherwise, yes will have to modify forms."

    Any and all comboboxes using lookup table as RowSource will automatically reflect any new items in table. A hard-coded ValueList will not.
    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
    Frankie is offline Novice
    Windows 11 Office 365
    Join Date
    Sep 2023
    Posts
    18
    Quote Originally Posted by June7 View Post
    Properly constructed report will show text, not ID numbers. We have described two methods to accomplish.

    I answered in post 33 of your other thread: "Easier way is to use lookup table as source for combobox list. Need to add a new item - just enter a record in table, otherwise, yes will have to modify forms."

    Any and all comboboxes using lookup table as RowSource will automatically reflect any new items in table. A hard-coded ValueList will not.

    I tried both of those methods... neither worked. So there is a setting somewhere or something that is off. I cannot find it. I did however get it to work by getting rid of relationships and list tables (as look ups) and manually entering option in combo box directly on form. It works like a charm. I did then go back and try go make a table that lists options for combo box for form, NOT for table input, then I made the look up table the "data" for a combo box on form only, and bound that combo box to table record for input data. The combo box on the form them began to only list numbers, not text. So unless someone walks me through the exact process and points out exactly the jam in my cogs, I am stumped. However, as I said, I fixed it by removing look ups altogether. I will just have to manually add options to form combo box as needed. Thanks for your help. I appreciate it. Eventually, some day, I'll get it.

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Well, both methods have been used by us with your db and they worked.

    I gave explicit instructions in posts 24 and 28 of your other thread on how to modify your posted db to demonstrate the combobox approach.

    Mike even gave you a revision of your db with the non-combobox report approach. Did you examine it?

    If your manually built comboboxes are not working, then yes, properties are not correct. Would have to see what you did. Critical would be:
    RowSource
    RowSourceType
    ControlSource
    BoundColumn
    ColumnCount
    ColumnWidths
    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
    Frankie is offline Novice
    Windows 11 Office 365
    Join Date
    Sep 2023
    Posts
    18
    well, yeah, i think that is what it is. we would have to see. I was able to get it working on my end, so I am happy as a clam.

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    That throws the premise of "doing it right" out the window. Are you the only user of this db? No one else will ever manage it?
    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: 2
    Last Post: 06-01-2021, 09:50 AM
  2. Replies: 17
    Last Post: 04-09-2018, 04:39 PM
  3. Combo boxes in forms
    By kong in forum Forms
    Replies: 5
    Last Post: 12-01-2015, 09:32 AM
  4. HELP! Forms - Subforms - Combo Boxes
    By jlgray0127 in forum Forms
    Replies: 11
    Last Post: 01-10-2014, 02:21 PM
  5. Combo Boxes on Forms
    By lucy1216 in forum Forms
    Replies: 1
    Last Post: 04-30-2013, 09:10 AM

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