Results 1 to 4 of 4
  1. #1
    MMMSOARES_2011 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    6

    How to create a button that opens an audio or video file at a specific point


    Hello

    IŽd like to create a button (in a form) that will open an audio or video file at a specific point. I mean: instead of playing the video from the beginning, it should start playing at a specific moment inside the audio/video file. Please give me the full syntax. Thank you very much in advance!

    The time in wich i want the file to start playing is stored in a field called 5_Section_Begin of a table called 5_Scetion (in minutes and seconds - xx:yy)

    The path to the file to open is in a field called Chapter_Link of a table called 4_Chapter

    Thank you very much in advance!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Refer to your pthread about opening PDF document.

    Do you have any code for this?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    MMMSOARES_2011 is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    6
    Hello, June7

    Sorry for my late reply. In the first 2 days i had no replies so i focused in other problems and stopped watching this forum. That was exactly when you came with your message. Thank you very much for the attention!

    I tried to use the same solution used to open the pdf file, but it didnŽt work. It seems that commenad works only for Adobe Reader.

    I did some research for the kind of command that i should use with Windows Media Player and i found a very simple way to open the audio/video file retrieving the "file path" from a table (or from the controltext box in the form, iŽm not sure). I wrote the following line and it worked perfectly.

    Shell "C:\Arquivos de programas\Windows Media Player\wmplayer.exe " & Chr$(34) & Me!Chapter_Link_Text & Chr$(34)

    The problem is that i couldnŽt find a way to make Widnows Media Player understand that i want the file to be opened at a specific point, for example start playing at 3:17 minutes instead of playing the file from the beginning. This value (in minues and seconds) should also be retrieved from a field in a table (or from a textbox in the form).

    Thank you very much for the attention and for willing to help!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,815
    Possible this cannot be done - I just don't know.

    This thread references a FastForward property of Windows Media Player control but can't find anything about how to use it. http://www.vbforums.com/showthread.php?t=357381
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 2
    Last Post: 09-11-2011, 05:19 AM
  2. Create a form that edits a specific record
    By winteram in forum Forms
    Replies: 10
    Last Post: 07-28-2011, 11:46 AM
  3. Replies: 3
    Last Post: 05-28-2011, 09:54 PM
  4. Form opens differently from control button
    By bdaniel in forum Programming
    Replies: 5
    Last Post: 12-29-2009, 12:38 PM
  5. Create a command button to Browes for file
    By sawill in forum Programming
    Replies: 3
    Last Post: 03-15-2009, 05:02 PM

Tags for this Thread

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