Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2005
    Posts
    28

    Unanswered: Empty a listbox?

    This is so humiliating... How do I empty a listbox?! I've tried:

    list14.recordSet=Null
    list14.recordSet = ""
    list14.recordSet = Nothing

    (All followed by list14.reQuery)

    Also a couple of other things. All I want is to clear the contents, both visually and programatically, can it be that hard?!

  2. #2
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    if you have a query bound to the list box then you can't clear it - requery should reset it.

    if you are using a manually (programmer) filled list then sst the rows/recordsource to ""

  3. #3
    Join Date
    Dec 2005
    Posts
    28
    I'm a muppet.

    It's SET list14.recordset = Nothing

    I forgot about set

Posting Permissions

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