How do I reset a Listbox when I open a Form

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?
 
J

Jeff Boyce

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top