check if any item selected on listbox

  • Thread starter Thread starter Silvester
  • Start date Start date
S

Silvester

I have an A2000 Listbox1 with rowsource set to table. I have a button that
copys item selected to another listbox Listbox2.

How do I test for and ensure that an item is selected in Listbox 1 before
allowing the code on btnCopy to run ?
 
If the ListIndex = -1 then nothing has been selected.

Hope This Helps
Gerald Stanley MCSD
 
Back
Top