How do I reset a Listbox when I open a Form

  • Thread starter Thread starter dannie
  • Start date Start date
D

dannie

I have a list box that is working great but when I close the form and open it
again it remembers what was selected when it was closed, how do I unselect
the item and have the scroll bar at the top as if it was the first time being
opened?
 
Dannie

One way is to set the 'value' of the listbox to null, with something like
(untested):

Me!YourListbox = Null


Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or psuedocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.
 
Back
Top