Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Clear Data from the Listbox

Status
Not open for further replies.

Marryp

Technical User
May 28, 2001
129
CA
Hi there!

How can I clear the item data from a Listbox?

Thanks.
 
a quick and dirty method is simply changing the rowsource property as :
Code:
with me.lstbxSomething
  .RowSource=""
  .Requery
end with

Hope it helps,
Rewdee
 
The requery will not work because I have a rowsource coded in VBA and the where clause of the sql comes from the txtbox criteria.

I would like to be able to clear the txtbox and the listbox.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top