Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Play sound OLE

Status
Not open for further replies.

luceze

Programmer
Apr 26, 2001
842
0
0
US
I have a table with an embedded picture in one field and an embedded .wav file in another. In a form I am trying to make the .wav file play when someone clicks a button. I know that you can activate the OLE object by double clicking on it but it won't work in my case. If anyone knows about this I would appreciate any help.

Eric
 
Hi

I have the code for this , drop me your e-mail address and I will send it to you over the week end

meadowsstephen@hotmail.com
 
I figured out how to do this. The code is as follows.
Private Sub PlaySound_Click()
With Soundx
.Verb = acOLEVerbPrimary
.Action = acOLEActivate
End With
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top