rikklaney1
Registered User.
- Local time
- Yesterday, 19:59
- Joined
- Nov 20, 2014
- Messages
- 157
Ok, back to the well of knowledge.  I have a form with windows media player embedded in it.  What I want it to do is play a random song when I open it.  So I put a field called Randomizer in the form and added this code.
 
Me.randomizer.Value = Int((60 - 1 + 1) * Rnd + 1)
 
Now How do I put the URL for the song into vba format? I tried just using the URL property field for the player (D:\[randomizer].mp3) but no luck. Any suggestions?
 Me.randomizer.Value = Int((60 - 1 + 1) * Rnd + 1)
Now How do I put the URL for the song into vba format? I tried just using the URL property field for the player (D:\[randomizer].mp3) but no luck. Any suggestions?
 
	 
 
		 
 
		 
 
		