D david123 Registered User. Local time Today, 01:21 Joined Feb 17, 2009 Messages 18 Jul 23, 2009 #1 Hello, How can I check if no items in a listbox have been checked? Thanks, David
pbaldy Wino Moderator Staff member Local time Today, 01:21 Joined Aug 30, 2003 Messages 36,272 Jul 23, 2009 #2 If Me.lstRoutes.ItemsSelected.Count = 0
KenHigg Registered User Local time Today, 04:21 Joined Jun 9, 2004 Messages 13,327 Jul 23, 2009 #3 david123 said: Hello, How can I check if no items in a listbox have been checked? Thanks, David Click to expand... You have to loop through all items and determine if any of them have been selected.
david123 said: Hello, How can I check if no items in a listbox have been checked? Thanks, David Click to expand... You have to loop through all items and determine if any of them have been selected.
D david123 Registered User. Local time Today, 01:21 Joined Feb 17, 2009 Messages 18 Jul 23, 2009 #4 pbaldy said: If Me.lstRoutes.ItemsSelected.Count = 0 Click to expand... That's perfect, thank you!
KenHigg Registered User Local time Today, 04:21 Joined Jun 9, 2004 Messages 13,327 Jul 23, 2009 #5 Whoops - I stand corrected. Thanks Paul
pbaldy Wino Moderator Staff member Local time Today, 01:21 Joined Aug 30, 2003 Messages 36,272 Jul 23, 2009 #6 No problemo! You certainly have to loop a multiselect box to see what was selected, but that should test if anything was selected at all.
No problemo! You certainly have to loop a multiselect box to see what was selected, but that should test if anything was selected at all.