S
SAC
I want to be able to select several items in a list box, click a button and
insert some of the fields into an invoice items table.
How do I iterate through the selected items and grab the data for the
fields?
I was just testing using msgbox to see the data but I'm not getting it:
For Each intIndex In lstInventory.ItemsSelected
MsgBox ("Counter = " & lstInventory.ItemData(0))
MsgBox ("Dept = " & lstInventory.ItemData(1))
MsgBox ("Item ID = " & lstInventory.ItemData(2))
MsgBox ("Family = " & lstInventory.ItemData(3))
MsgBox ("Desc = " & lstInventory.ItemData(4))
MsgBox ("Total Inven = " & lstInventory.ItemData(5))
Next intIndex
What do I need to do?
Thanks.
insert some of the fields into an invoice items table.
How do I iterate through the selected items and grab the data for the
fields?
I was just testing using msgbox to see the data but I'm not getting it:
For Each intIndex In lstInventory.ItemsSelected
MsgBox ("Counter = " & lstInventory.ItemData(0))
MsgBox ("Dept = " & lstInventory.ItemData(1))
MsgBox ("Item ID = " & lstInventory.ItemData(2))
MsgBox ("Family = " & lstInventory.ItemData(3))
MsgBox ("Desc = " & lstInventory.ItemData(4))
MsgBox ("Total Inven = " & lstInventory.ItemData(5))
Next intIndex
What do I need to do?
Thanks.