Results 1 to 7 of 7
  1. #1
    2 Star Lounger
    Join Date
    Feb 2002
    Posts
    155
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Make highlight in listbox disappear (A2K (SR1))

    I have 2 single-pick listboxes in a form, each one opening a report. If I picked one option from listbox 1, and then move to listbox 2, how would I make the highlight in the first listbox disappear so that only the choice in listbox 2 is highlited? Thanks in anticipation.

  2. #2
    Bronze Lounger
    Join Date
    Nov 2001
    Location
    Arlington, Virginia, USA
    Posts
    1,394
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Re: Make highlight in listbox disappear (A2K (SR1))

    Set value of 1st listbox to null. Ex:

    <pre>Me.Listbox1 = Null</pre>

    HTH

  3. #3
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Make highlight in listbox disappear (A2K (SR1))

    Are you going to use the value selected in the first listbox for anything? If you are, then it would not be a good idea to unselect it.
    Charlotte

  4. #4
    2 Star Lounger
    Join Date
    Feb 2002
    Posts
    155
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Make highlight in listbox disappear (A2K (SR1))

    No, Charlotte, the items in the two listboxes are independent of each other, though they are under the same broad category. DavidD's advice worked very well for me. Thanks.

  5. #5
    2 Star Lounger
    Join Date
    Feb 2002
    Posts
    155
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Make highlight in listbox disappear (A2K (SR1))

    Thanks, David. It works.

  6. #6
    Bronze Lounger
    Join Date
    Nov 2001
    Location
    Arlington, Virginia, USA
    Posts
    1,394
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Re: Make highlight in listbox disappear (A2K (SR1))

    Glad it worked but who's David?? <img src=/S/confused.gif border=0 alt=confused width=15 height=20>

  7. #7
    2 Star Lounger
    Join Date
    Feb 2002
    Posts
    155
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Make highlight in listbox disappear (A2K (SR1))

    Sorry, MarkD, neither do I know who is David I got mixed up along the way. My sincere apology and thanks for your help.

Posting Permissions

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