Converting from List to combo box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • toddw607
    New Member
    • Feb 2007
    • 41

    Converting from List to combo box

    Hi Everyone,
    I originally had a list on a form but converted it to a combo box to get rid of the white space when transitioning through the form. I have the following code:
    lstBusinessProg ramsPF.ItemsSel ected.Count > 0
    in an if loop. The problem is in the ItemsSelected statement. This statement seems to be a List command what should I place in the statement to make it work for a combo box. Any Ideas? Thank you!!
    -Todd
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    ItemsSelected is listbox only. Seeing as how you can only select one value from a combobox, there is no need for it. You can simple use isnull() which will tell you if they selected a value or not. Provided you limited the selections to the list.

    Comment

    • toddw607
      New Member
      • Feb 2007
      • 41

      #3
      Originally posted by Rabbit
      ItemsSelected is listbox only. Seeing as how you can only select one value from a combobox, there is no need for it. You can simple use isnull() which will tell you if they selected a value or not. Provided you limited the selections to the list.

      Thank you very much Rabbit...I will place that right now.

      Comment

      • Rabbit
        Recognized Expert MVP
        • Jan 2007
        • 12517

        #4
        Not a problem. Good luck. Let us know how you get along.

        Comment

        Working...