Hi Mark!
You were close. I believe what you want is something like:
ThisForm.LstListItem.AddItem('123', Y, 1)
ThisForm.LstListItem.AddItem('456', Y, 2)
Where Y is the row number your working with.
To add to the bottom of the list you could use:
ThisForm.LstListItem.AddItem('123', ThisForm.LstListItem.ListCount + 1, 1)
ThisForm.LstListItem.AddItem('456', ThisForm.LstListItem.ListCount, 2)
>I am additing items to listbox:
>ThisForm.LstList.AddItem('123', 1)
>ThisForm.LstList.AddItem('456', 2)
>I'd like to have one row with data in two columns but I have two rows with data in a first column only. What am I doing wrong?
>Thanks Mark
kenweber
GCom2 Solutions
Microsoft Certified Professional