Results 1 to 6 of 6
  1. #1
    tagteam is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    486

    best way to create form with 30 dropdowns

    I have a user that wants a form that queries a table, brings back almost all the data and displays about 150 fields. of those 150 fields he wants to display about 50 of them as dropdown lists. I am wondering what is the best way to create this form so that it opens and operates at a reasonable speed. The database is a split database. The user will be working on the form in an access database on his local computer but accessing the data on the network server.


    Thanks

  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
    Personally I'd probably try it with standard combos getting their selections from linked tables. The performance might be fine. If not, you can try deleting all the row sources (or perhaps just for the less likely to be used combos), then setting the row source for each combo in its got focus event.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    tagteam is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    486
    So rather than converting the field box to a combo box and setting the field value to be a query that looks at all the available options in that field you would break each of those fields out into separate tables and then just use the item id in the actual field and use a combo box to display the text description of the item?
    That would give you about 50 small tables that you would basically just use as lookup tables.

    Not sure if that is what you are saying or not.

    Right now, i created the form, converted the field boxes to combo boxes and used the query window to create the dropdown values. that way I dont end up with a bunch of tables but it is very slow to open the form.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    If you pull values from the records in the data table, there won't be any choices until records are entered. This is something I do but the field is really a free text entry field. The combobox is an aid to the user if they want to use an existing entry (most are phrases, not just single words) but they are free to enter whatever they want. If you need to provide users with a standard set of items to choose from, use a lookup table or a Value List as 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.

  5. #5
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    What, exactly, is the purpose of this app[/B]? Most experienced developers will tell you that a Table with more than 25-30 Fields is probably a sign that the database is non-normalized. A single Table with 150 Fields is almost assuredly so!

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  6. #6
    tagteam is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    486
    Yes, I agree. However, the client wants to be able to use whichever of the 30 fields he wants as a search criteria so I dont really know another way to do it. It is a database for railcars and each railcar has about 100 different specs that they keep on file. Then they may want to search by all cars with spec 1 that also have spec 4 and spec5. Or they may want to search by spec7 and spec 10 as long as it is higher than spec3. the combinations are almost endless and i dont really know how to normalize for that.

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

Similar Threads

  1. Access Dropdowns
    By gor in forum Access
    Replies: 6
    Last Post: 07-06-2012, 11:42 PM
  2. Referencing Dropdowns to multiple fields
    By John Mundy in forum Forms
    Replies: 2
    Last Post: 11-14-2011, 05:15 AM
  3. Filter Report with Dropdowns
    By ShadeRF in forum Reports
    Replies: 4
    Last Post: 05-30-2011, 12:40 PM
  4. Add data from two dropdowns into a relationtable?
    By Alexandersson in forum Forms
    Replies: 0
    Last Post: 02-14-2011, 01:59 AM
  5. dropdowns and listboxes
    By t_dot in forum Forms
    Replies: 6
    Last Post: 08-19-2010, 11:12 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