Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / March 2007

Tip: Looking for answers? Try searching our database.

Clear list

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stacey - 12 Mar 2007 19:04 GMT
Does any one know how to clear out a multiselect listbox?  I found one on
Allen Brown's website, however, I couldn't get it to work.  What I am trying
to do is clear out the select items once the query/report is generated.  
Thanks!
ruralguy - 12 Mar 2007 19:36 GMT
I'm pretty sure you just need to Requery the ListBox.

>Does any one know how to clear out a multiselect listbox?  I found one on
>Allen Brown's website, however, I couldn't get it to work.  What I am trying
>to do is clear out the select items once the query/report is generated.  
>Thanks!

Signature

HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.

Stacey - 12 Mar 2007 20:31 GMT
I found the solution under a response by Ofer.  Thanks for the response.

For i = 0 To ListBoxName.ListCount - 1
 ListBoxName.Selected(i) = false
Next i

> I'm pretty sure you just need to Requery the ListBox.
>
> >Does any one know how to clear out a multiselect listbox?  I found one on
> >Allen Brown's website, however, I couldn't get it to work.  What I am trying
> >to do is clear out the select items once the query/report is generated.  
> >Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.