Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Aug 2001
    Location
    Surrey, United Kingdom
    Posts
    1,001
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Morning

    I am using a ComboBox to select a Customer which then autofills the address (Thanks to Nathan in an earlier post).

    My Problem now is that many of my Customers have multiple brances, for example

    The Pharmaceutical Company
    The Pharmaceutical Company
    The Pharmaceutical Company

    So in the ComboBox they all look the same. Is there a setting in the properties that allows me to display 2 lines, in my case A3 and E3 which would then show as

    The Pharmaceutical Company
    Dublin
    The Pharmaceutical Company
    India
    The Pharmaceutical Company
    New York

    So that I can select the relevant entry. I am currently working around this by adding a 3 letter code in brackets

    The Pharmaceutical Company (DUB)
    The Pharmaceutical Company (BLR)
    The Pharmaceutical Company (NYC)

    But it does not look too good.

    Any suggestions please?
    Cheers

    Steve

    Asking the questions everbody wants the answers too but feels too stupid to ask themselves :-)

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    You can't display more than one line in a combo box, but a combo box (from the Control Toolbox toolbar) can have multiple columns - set the ColumnCount and ColumnWidths properties to appropriate values, and set the ListFillRange property to a range with more than one column.

  3. #3
    5 Star Lounger
    Join Date
    Aug 2001
    Location
    Surrey, United Kingdom
    Posts
    1,001
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [quote name='HansV' post='767212' date='25-Mar-2009 08:43']You can't display more than one line in a combo box, but a combo box (from the Control Toolbox toolbar) can have multiple columns - set the ColumnCount and ColumnWidths properties to appropriate values, and set the ListFillRange property to a range with more than one column.[/quote]

    Thanks Hans

    I will go and try that now.

    FYI I was going to print this topic to read as I made the changes but the 'Options' box at the top of the topic is blank?

    Editted: Forget the last bit, I have just checked again and now it is populated, must be my browser
    Cheers

    Steve

    Asking the questions everbody wants the answers too but feels too stupid to ask themselves :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •