Results 1 to 4 of 4
  1. #1
    jerem is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    88

    Combo Box Default Value / Help Text,

    Hi,

    Is there a way to create a text default value for a control box that is bound to a number field?

    I have a combo box that is bound to an auto number ID but displays text. Bound column = 1, Number of column = 2, Column width = 0; 4cm

    I want to use sample text in all my controls (and I know an alternative would be to use the control tip text). In a text box it is easy, I just set the default value to that value and then a before_update event considers the text box empty if the field value is the default value (e.g. Name text box has: Name... as default value). This doesn't work with my combo box since the bound column is a number. I could create a value in the table but then it would appear in the drop box and it is messy.

    Any other ways of doing this?

    Cross:
    http://www.utteraccess.com/forum/Com...-t2019797.html
    http://www.access-programmers.co.uk/...87#post1364487




  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    You dont assign a text value to a number bound combo.
    You assign the number that GIVES you the text value.
    If you want NY to appear in the combo and the ID = 4 , then cboState = 4 will show NY in the box. (w ID column.width = 0)

  3. #3
    jerem is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    88
    Ramman: I know that. But this is not what I am trying to achieve.

  4. #4
    jerem is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    88
    For those facing the same issue, here is the solution:
    http://www.access-programmers.co.uk/...d.php?t=266820

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

Similar Threads

  1. create default rich text in text box
    By enemydr in forum Forms
    Replies: 7
    Last Post: 02-19-2014, 09:38 PM
  2. Replies: 2
    Last Post: 05-05-2013, 09:07 PM
  3. Background Text (Not Default)
    By Douglas Post in forum Forms
    Replies: 1
    Last Post: 02-16-2012, 08:43 AM
  4. Replies: 6
    Last Post: 07-18-2011, 12:56 PM
  5. Simple Question - Combo Box Default Text
    By sayitgreen in forum Forms
    Replies: 3
    Last Post: 02-20-2010, 12:59 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