Hi All
Can anyone please help with this problem.
I have a list box which gets populated from a choice from a combo box.
E.g I choose location "R0001" from the combo box and the list box gets populated with all assets in that location. When I go to the list box, click
on the first record, then go to the last record , hold down the shift key and then click on the last record, it shows that it has selected all. But when i run the code to update these record it only takes the first record and the last record. I have the following code in my InteractiveChange event of the list box.
nNumberSelected = 0
FOR nCnt = 1 to thisform.List1.ListCount
IF Thisform.List1.Selected(nCnt)
nNumberSelected = nNumberSelected + 1
replace txfer with .T.
ENDIF
ENDFOR
Thisform.txtNoSelected.Value = nNumberSelected
Thanks in advance
Fida
Wannabe FoxPert!!!