A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

playing wavs



 
 
Thread Tools Display Modes
  #1  
Old June 2nd, 2004, 11:18 PM
Smiller
external usenet poster
 
Posts: n/a
Default playing wavs

how can I play a wav sound in access?
  #2  
Old June 3rd, 2004, 04:37 AM
Graham R Seach
external usenet poster
 
Posts: n/a
Default playing wavs

http://www.pacificdb.com.au/MVP/Code/Sound.htm

....or...

Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long, ByVal
dwDuration As Long) As Long

Public Sub PlayBeep()
Dim iCtr As Long

For iCtr = 0 To 5000 Step 10
'Play a tone of iCtr hertz, for 50 milliseconds
Call Beep(iCtr, 50)
DoEvents
Next iCtr
End Sub

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia

Microsoft Access 2003 VBA Programmer's Reference
http://www.wiley.com/WileyCDA/WileyT...764559036.html


"Smiller" wrote in message
...
how can I play a wav sound in access?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.