Results 1 to 4 of 4
  1. #1
    Mina Garas is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    33

    Vocabulary Project

    Hi Everybody

    I want to make a Vocabulary Project using access
    i already made a table consist of 3 fields
    first filed name is Word
    second field name is Definition
    third field name is pronounce

    i want put "pronounce" sound file in the third file so that
    the user can listen to the word pronunciation when he press on the field

    my question is how i can put that sound file in my table

    thanks

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Yes, you can, well, you need a module and some code to make it happen.
    Put this code into a module and save as PlayWavFile Then use this code to fire the wav file: PlaySound ("C:\Sounds\authorization.WAV")
    Option Compare Database

    Public Declare Function sndPlaySound Lib "winmm.dll" _
    Alias "sndPlaySoundA" (ByVal lpszSoundName As String, _
    ByVal uFlags As Long) As Long


    Sub PlayWavFile(WavFileName As String, Wait As Boolean)
    If Dir(WavFileName) = "" Then Exit Sub ' no file to play
    If Wait Then ' play sound before running any more code
    sndPlaySound WavFileName, 0
    Else ' play sound while code is running
    sndPlaySound WavFileName, 1
    End If
    End Sub


    Sub TestPlayWavFile()
    PlayWavFile "c:\Trakker\authorization.wav", False
    MsgBox "This is visible while the sound is playing..."
    PlayWavFile "c:\Trakker\authorization.wav", True
    MsgBox "This is visible after the sound is finished playing..."
    End Sub

  3. #3
    Mina Garas is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    33
    thanks alot for your help
    but i want ask u about third field data type, is it must be an ole object or another type ???

  4. #4
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    NO. ONLY a wav file.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. vba vocabulary
    By mejia.j88 in forum Programming
    Replies: 1
    Last Post: 01-16-2012, 01:30 PM
  2. Project
    By Gustavo in forum Access
    Replies: 1
    Last Post: 11-04-2010, 11:49 AM
  3. need help with project
    By yuske012003 in forum Access
    Replies: 1
    Last Post: 10-16-2010, 05:00 PM
  4. please can you help me with a project
    By Mark@starsupplies.co.uk in forum Database Design
    Replies: 1
    Last Post: 08-31-2010, 04:31 PM
  5. Need help with a new project
    By faust7 in forum Access
    Replies: 3
    Last Post: 12-07-2009, 02:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums