Clearing a List box

access83

Registered User.
Local time
Today, 16:43
Joined
Apr 25, 2012
Messages
22
Hi All,

I'm trying to clear the contents of a listbox but not having any success. The Row Source Type is 'Table/Query'. I've tried..

Code:
Me.ListBox_Name.RowSource = ""
Me.ListBox_Name.RemoveItem(1)

The source of the Listbox is the result from a Stored Procedure in SQL Server..

Code:
Forms!frm_ViewRequests.list_details.Recordset = rsPerformSearch

list_details is the listbox, rsPerformSearch is the recordset. The records returned from the Stored Procedure are in rsPerformSearch.

Does anyone know how to clear the listbox?

Thanks in advance :)
 
I have used the
Me.ListBox_Name.RowSource = "" and it does the trick, not sure why it is not working out for you.
 

Users who are viewing this thread

Back
Top Bottom