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 Programming / August 2005

Tip: Looking for answers? Try searching our database.

Multiselect list box Count problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ChrisK - 08 Aug 2005 23:26 GMT
Dear all,

I'm seeing something strange with the .Count property of a multiselect list
box in Access 2000.  When I first open the form and use the following
statement:

   If Me.lstQuoteComponent.ItemsSelected.Count = 0 Then

This property always evaluates to 0 no matter how many items are actually
selected.  If I run the code through again, it correctly shows the number of
items selected.

CK
John Nurick - 09 Aug 2005 07:55 GMT
Hi Chris,

You say "when I first open the form". Could it be that the code is
running before the listbox has finished loading or before the items have
been selected?

>Dear all,
>
[quoted text clipped - 9 lines]
>
>CK

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
 
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.