Results 1 to 7 of 7
  1. #1
    d9pierce1 is offline Expert
    Windows 10 Access 2016
    Join Date
    Jan 2012
    Location
    Oklahoma
    Posts
    776

    Option Group Txt rather than Number displayed in list box

    Hi all,
    I did a mock up small db for this but I cant seam to figure out how to show the option group captions in my list box instead of the numbers?

    1 = State
    2 = City
    3 = County

    Dave


    ListBox Sample.zip

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,526
    Set the list property,
    Columnwidths: 0:2
    columns=2

  3. #3
    d9pierce1 is offline Expert
    Windows 10 Access 2016
    Join Date
    Jan 2012
    Location
    Oklahoma
    Posts
    776
    Sorry, that wont do it, not the problem but thanks

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,431
    option groups only store the number so you will need a function to display a name - something like

    choose(license,"State","City","County")

  5. #5
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    ListBoxSample-davegri-v01.zip

    Have a look at this.

  6. #6
    d9pierce1 is offline Expert
    Windows 10 Access 2016
    Join Date
    Jan 2012
    Location
    Oklahoma
    Posts
    776
    Hi Davegri,
    That is just great! You are so good at this. Thank you so much and have a great night!
    Dave

  7. #7
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    Happy to help - and thanks for the star click.

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

Similar Threads

  1. Replies: 14
    Last Post: 06-25-2020, 08:42 AM
  2. Replies: 4
    Last Post: 10-03-2014, 06:36 AM
  3. Replies: 8
    Last Post: 11-18-2013, 03:36 AM
  4. Replies: 4
    Last Post: 07-08-2013, 03:46 PM
  5. Replies: 1
    Last Post: 11-23-2010, 01:30 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