Results 1 to 4 of 4
  1. #1
    stalk is offline Competent Performer
    Windows 10 Office 365
    Join Date
    May 2014
    Posts
    143

    Is there a easy way to convert all text fields to combo box( to add drop downs)

    I have 6 forms and about 60 fields( currently they are text boxes) that I need to add drop down to prevent formatting issues during data entry.
    Any suggestions are greatly appreciated.
    My plan is to add all the drop down values for all the fields in a excel spreadsheet and then import that table then link each combo box with relevant field.

    open to any best solutions to quickly modify the fields



    Thank you

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    What do you want to accomplish in plain English --no database jargon?
    What is the application in overview?
    Why is Excel involved?

    Need some context to offer suggestions.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    right click on the textbox, convert to combo
    set the combo data source.

  4. #4
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    You can also do the conversion in VBA (you will need to open the forms in design view and loop through the controls checking for the ControlType=acTextbox):
    https://www.tek-tips.com/viewthread.cfm?qid=943635
    But your plan with setting the row sources will not work, depending on your field contents you will need one new lookup table for each entity like a table of cities for a City combo, a table for street type (Street, Avenue, Road,...) and so on. Doing that in Excel will not help you much as you cannot set the row source using a range like in Excel.

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

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

Similar Threads

  1. Combo Box Drop-Downs
    By victor2525 in forum Access
    Replies: 6
    Last Post: 03-05-2018, 04:08 PM
  2. Replies: 2
    Last Post: 03-06-2015, 01:13 PM
  3. Drop downs error on clear
    By Ruegen in forum Programming
    Replies: 2
    Last Post: 10-31-2013, 12:40 AM
  4. Collecting data via email with drop downs
    By tlyons in forum Access
    Replies: 2
    Last Post: 01-19-2011, 10:34 AM
  5. Drop downs and serching in subforms
    By joelwebster in forum Forms
    Replies: 0
    Last Post: 12-13-2009, 03:38 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