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 / Modules / DAO / VBA / November 2006

Tip: Looking for answers? Try searching our database.

List Box Clearing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Frank C - 13 Nov 2006 21:12 GMT
When a List Box Multiselect is set to 'None' I can reset the box with
me.Listbox = null.

When I try this with Multiselect set to 'Simple' , It doesn't clear the  box.
How can I clear the entries in the box.

Thanks
Signature

Thank you

Frank C

fredg - 13 Nov 2006 21:28 GMT
> When a List Box Multiselect is set to 'None' I can reset the box with
> me.Listbox = null.
[quoted text clipped - 3 lines]
>
> Thanks

You can add a command button and use it's click event:

Dim varItem As Variant
For Each varItem In ListBoxName.ItemsSelected
   ListBoxName.Selected(varItem) = False
Next varItem
Signature

Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

Frank C - 13 Nov 2006 21:59 GMT
Thanks Fred that worked great.
Frank
Signature

Thank you

Frank C

> > When a List Box Multiselect is set to 'None' I can reset the box with
> > me.Listbox = null.
[quoted text clipped - 10 lines]
>     ListBoxName.Selected(varItem) = False
> Next varItem
 
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.