start playing from the begining

anchamal

Registered User.
Local time
Today, 12:00
Joined
Mar 7, 2010
Messages
57
i have this code in the ontimer event of my form.
it is supposed to play the next song (from the listbox) after windows media finish current song.

i want to add code so that when the current song playing is the last from my list box to go to the begining of the listbox and play agian.

using office 2013

here is my code:
With Me.TRACKLIST
.SetFocus
If IsNull(.Value) Then
.ListIndex = 0


ElseIf .ListIndex < .ListCount - 1 Then
.ListIndex = .ListIndex + 1
WindowsMediaPlayer3.URL = [Forms]![jukebox]![findfromtracklist]![imported]
 

Users who are viewing this thread

Back
Top Bottom