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
PC Won't Run Firefox
How do I find the logged in Username from a batch file?
Creating a child window
Need to make a label visible on screen when record has been deleted but not yet cleared using Pack
Why is #include "stdafx.h" required to run the following code from this C++ book?
Track user logon/logoff to the access database.
Calculate/edit a field in a datagrid VB.net
Mapping drive to Win 7 machine
Get value from a specific field based on the value of an another field in the same query?
in-place upgrade