Microsoft
Software
Hardware
Network
Question : refreshing listbox value
I have a listbox on a form. Sometimes the value of the listbox does not reflect what is actually selected. Specifically, after I have deleted an item from the listbox and there is no item selected on the listbox, the value it reflects in some code following is still the id of the deleted item instead of "null." Is there a way to refresh the value? I tried using the requery command, but did not work?
Answer : refreshing listbox value
After deleting ... try this:
Me.YourListBoxName = Null
This will clear the list box.
mx
Random Solutions
Find Corrupt Record
Can't load web pages in IE java script errors
Option Button array
Get ListViewItem Checked state by Index in VB .NET
Deriving Month from Text
DHCP not updating DNS Reverse lookup zones
How will adding a VBA reference to ADO 2.8 affect my database?
Changing Default Calendar in Outlook 2007
Combo Box List index
.NET: Entity Framework, Views and Stored Procedures