I have a OLE object that is a wav file and it plays whenever a form is opened. The only catch is that I need it to stop playing when the form is closed. Right now I am having to press the 'esc' key. I've tried using sendkeys, but it doesn't work. Any ideas?
Thanks in advance!
Code:
Private Sub Form_Load() Me.txtoffer.SetFocus phone.Action = acOLEActivate End Sub Private Sub Form_Timer() Me.TimerInterval = 0 thinking.Action = acOLEActivate End Sub
Comment