clear selected item in list box

  • Thread starter Thread starter ridders
  • Start date Start date
R

ridders

Hi

I have a list box LstDetentions in which a user can select a specific
detention date.
A control cmdDelete allows the selected date to be cleared later if
required. However if more than one date has been selected, using cmdDelete
always deleted the first detention date no mastter which date has been
selected for deletion.
Ideas on how to identify the problem please.

Thanks
 
I am not sure what you are trying to do.

In the subject line you say "clear selected item in list box" but then you
use "cmdDelete".

So, do you want to unselect selected items in a multiselect list box ....

or do you want to delete the selected items from the list box ROW source?

HTH
 
Hi

Sorry - in retrospect I can see why it wasn't clearly explained.
I was 'unselecting'
Anyway I've solved it already thanks
 
Back
Top