Listbox ItemsSelect

  • Thread starter Thread starter rm
  • Start date Start date
R

rm

In the code below lstCtl is with some consistency Null. The code is
contained in a button click event. The button resides on a subform.
lstCtl is Null the first time to button is clicked. On successive
calls the code works as designed. What am I doing wrong?

lstOpenTS.SetFocus
Set frm = Me
Set lstCtl = Me.lstOpenTS

For Each varItm In lstCtl.ItemsSelected
Call writeTSProfile(lstCtl.Column(0, varItm))
Next varItm
 
Back
Top