How to play multiple images in a Windows Media Player

M

Miles

Hi:

I am trying to play multiple images in a Windows Media Player control
embedded on a form. The filepath for the images comes from a multiselect
list box.

The code I have is:

dim varImage as variant
dim strFileName as string

For Each varImage in Me.lstImageTitles.ItemsSelected
strFileName = CStr(Me.lstImageTitles.Column(3,varImage))
Me.WindowsMediaPlayer10.URL = strFileName
Next varImage


For some reason, it only plays the last image that was selected and not all
the selected items. Does anyone know how I can fix this? I am using
Access2003.


Thanks in Advance.
Miles.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top