Results 1 to 4 of 4
  1. #1
    bid19123 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2016
    Location
    Cayman Islands
    Posts
    15

    Change combo box to textbox

    I have a form with a subform on it. The main form part has data in combo boxes. I dont want the values in the main part to be editable. I can lock the combo boxes but the fact that they are a combo box looks strange if they cant be edited. When I change from combo to form the data on the form changes from a text value to a record ID number. How do I change the combo boxes to text boxes without altering the returned data?



    Thanks

    Alan

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    combo boxes can hold many values (columns) and it usu hides the key.
    text boxs hold 1 value and it MUST be the key.

    so choose:
    combo box to see text (yet store the key)
    or make many text boxes , a visible one to show the text, and invisible to hold the key.

    me, i keep combos.

  3. #3
    bid19123 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2016
    Location
    Cayman Islands
    Posts
    15
    Thanks for that,

    Its not a major problem I just think that on a form where you do not want people to change the data then a simple textbox looks better than a combo.

  4. #4
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,142
    If you don't need to edit the values then simply add the combo lookup table to your forms records source, link it to the stored id field and bring the text in from the lookup table.

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

Similar Threads

  1. change default value of a textbox
    By bbxrider in forum Forms
    Replies: 4
    Last Post: 12-22-2014, 12:57 PM
  2. Change Text in Textbox for Report
    By soccasnow in forum Reports
    Replies: 6
    Last Post: 01-25-2013, 02:19 PM
  3. Programming to change Combobox to Textbox on the fly
    By shane201980 in forum Programming
    Replies: 3
    Last Post: 09-05-2012, 10:05 PM
  4. change textbox value after combo update
    By arctushar@yahoo.com in forum Forms
    Replies: 5
    Last Post: 09-06-2010, 07:17 PM
  5. change() on the textbox
    By skywalker in forum Forms
    Replies: 0
    Last Post: 03-01-2009, 01:28 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