C
Cyberwolf via AccessMonster.com
I have the following code that I know can be rewritten to be a little more
graceful.
If Forms(stF)!lstRulesTableName.ItemsSelected.Count = 1 Then
For Each varItem In Forms(stF)!lstRulesTableName.
ItemsSelected
stTableName = Forms(stF)!lstRulesTableName.ItemData
(varItem)
Next varItem
Basicaaly I first check to see if there is only 1 item selected. The I do
the for next loop, which I belive can be gotten rid of, but I haven't been
able to figure out what to put in the index part of the ItemData.
TIA.
graceful.
If Forms(stF)!lstRulesTableName.ItemsSelected.Count = 1 Then
For Each varItem In Forms(stF)!lstRulesTableName.
ItemsSelected
stTableName = Forms(stF)!lstRulesTableName.ItemData
(varItem)
Next varItem
Basicaaly I first check to see if there is only 1 item selected. The I do
the for next loop, which I belive can be gotten rid of, but I haven't been
able to figure out what to put in the index part of the ItemData.
TIA.