Results 1 to 3 of 3
  1. #1
    Takiman is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2017
    Posts
    21

    Set default value for a text Box to a value in another table but display different value in text box

    Hi I would like to set the default value for a text Box to a value in another table but display a different value in text box e.g. I have a Text Box called CustomerTypeID. I would like to set the Default Value to "1" so that it is stored as CustomerTypeID as "1" however, I would like the text box to display as CustomerTypeID "Regular".



    This is simple to do when I am creating a Combo Box i.e. the Combo Box wizard allows me to get the values from another table, and gives the option to hide the key column, and then store the key value in the appropriate field. -- basically, I would like this functionality for a single text box as I dont need the dropdown value as I only have one value I would like this text box to display?

    Any help would be great.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    Do the same thing, use a combo box. If you don't want the user to change ,set it locked.
    or
    you could make the cboBox invisible, and set the visible textBox to the string value.
    the cboBox is set to 1 (default) but take the cbo other column to set the textbox.
    txtBox=cboBox.column(2)

  3. #3
    Takiman is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Mar 2017
    Posts
    21
    Ok thankyou for your advice, it works well now.

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

Similar Threads

  1. Replies: 6
    Last Post: 03-05-2015, 01:42 PM
  2. Replies: 12
    Last Post: 03-01-2015, 01:36 PM
  3. Replies: 1
    Last Post: 06-18-2014, 09:39 PM
  4. Replies: 9
    Last Post: 04-18-2014, 08:51 PM
  5. create default rich text in text box
    By enemydr in forum Forms
    Replies: 7
    Last Post: 02-19-2014, 09: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