Hi,
I'm trying to populate the list box in a form based on data from a different form. Basically, what I want to do is take all the selected items from a filelist and put them in a listbox on another form.
This is the code I am using, which (needless to say) doesn't work. The list I am trying to populate is on the form "frmDone".
-----------Begin Code---------------
For I = 0 To FileListCount - 1
If File1.Selected(I) = True Then
frmDone.List1.AddItem " File1.FileName(I)
Else
End If
Next
frmDone.Show
----------End Code-------------------
Any help would be greatly appreciated.
John Vogel
john@thecompuwizard.com
I'm trying to populate the list box in a form based on data from a different form. Basically, what I want to do is take all the selected items from a filelist and put them in a listbox on another form.
This is the code I am using, which (needless to say) doesn't work. The list I am trying to populate is on the form "frmDone".
-----------Begin Code---------------
For I = 0 To FileListCount - 1
If File1.Selected(I) = True Then
frmDone.List1.AddItem " File1.FileName(I)
Else
End If
Next
frmDone.Show
----------End Code-------------------
Any help would be greatly appreciated.
John Vogel
john@thecompuwizard.com