Help with List Box

  • Thread starter Thread starter Dib
  • Start date Start date
D

Dib

Hi,

I have a form that the user will click on a command button to select an
attachment.

I want this attachment to show in a List box, I am able to get it to show
only one value (ROW).
if I try to add another attachment the value in the list box is over
written. What am I doing wrong.

I have the list box Rowsource type = Value list

Me.lstAttachments.RowSource = sFile ' is the file the user selected.
Thanks
Dib
 
Hi again,

I was able to figure out how to add

If varItm = 0 Then
Me.lstAttachments.RowSource = sFile
varItm = 1
Else
Me.lstAttachments.RowSource = Me.lstAttachments.RowSource & ";" &
sFile
End If

Now I need help with how to remove an item if the user select to remove ,

Please advice

Thanks
Dib
 
Back
Top