473,396 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Hyperlink to play .wav file with Win Media Player

5
MS Access 2000 database. When I dbl click hywerlink (K:/music/123.wav) path it plays in sndrec32 (I think). I want to use Media Player instead so I can have some control of the audio. .MP3 and Midi files launch WMP as desired, but will not work with .wav.
Any help will be appreciated.
Feb 27 '13 #1
7 3170
Rabbit
12,516 Expert Mod 8TB
The user can choose to open wav files with windows media player by default. If you want to force it regardless of the user's preference, you can open windows media player and pass it the file as an argument.
Feb 28 '13 #2
krdbjd
5
Not sure what you mean as an argument... I set (in Explorer) the default program to use for .wav files as WMP and .wmp files open with WMP when a .wav file is clicked from file manager (Explorer). When the file address is put in a hyperlink field in MS Access and clicked, it opens in something else. Not sure what as I cannot find it even in process explorer. I have opened WMP before clicking the hyperlink and it also did not work. How can I code the hyperlink in MS Access to send the .wav file to WMP??? Strange that a midi or MP3 file is put in the hyperlink it works fine.
BTW - I am using XP pro and Access 2000

Thank you for the reply...
Feb 28 '13 #3
Rabbit
12,516 Expert Mod 8TB
I don't know why setting the default didn't work.

You can still issue a command to explicitly open windows media player. An argument is a parameter that you pass along with the command.

For example, if I want to open windows media player and have it automatically play a song, I would issue this command in the command prompt.

Expand|Select|Wrap|Line Numbers
  1. wmplayer "C:\Song Folder\song.wav"
You can issue the same command using VBA code.
Feb 28 '13 #4
krdbjd
5
My problem is that I need to enter a hyperlink or other command in a MS Access database. WMP works fine from the run box or just dbl clicking in file manager... I did try what you suggested in the hyperlink column in Access but could find no combination that would work. WMP will start if I just enter the location of wmplayer.exe, but as soon as I try to add an argument, i.e. file name and location it errors out.

Thank you
Mar 1 '13 #5
Rabbit
12,516 Expert Mod 8TB
You don't put that command in the hyperlink. You use the on click event of the control to run VBA code that calls the command.
Mar 1 '13 #6
krdbjd
5
Will be a few days - ordered a couple books on MS Access programming and VBA programming. Books are cheap, shipping 3x cost of books... Will come back and post after I get some reading done...

Thanks for the help
Mar 2 '13 #7
krdbjd
5
Adding - I have found that the hyperlinks work fine in WIN 7. It will open WMP as desired instead of playing in the background as it does in Win XP. I will post back if I find a solution to the XP delima...
Mar 7 '13 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Chris | last post by:
Hi Everyone, I posted a message on a few other groups, but I haven't heard a thing from anyone. Not to mention, I'm completely at a loss. Anyway, I was wondering if anyone could let me know how...
2
by: benmourra | last post by:
Hi all, I'm trying to create a web page using VS2005, ASP.NET 2.0, that will allow me to choose from a list of media files on my computer and then play my selection within an embedded Windows...
1
by: sri2097 | last post by:
Basically, I want to check if a URL is playable or not (without actually playing it). i.e. given a URL I want to write an automation script to figure it out for me if it's playable or not. If...
0
by: Stephen | last post by:
Here is the problem I have a aspx page with a databound listbox control. In the listbox I display a the possible movies that can play in media player object. The problem is I can't figure out...
9
by: Morris Neuman | last post by:
Im working with VS 2005 and trying to use a Hyperlink field in a datagrid to play a wave file that is not located in the website folders but is in a plain folder on the same machine, windows 2003...
19
by: Tony | last post by:
I'm working on project that plays movies using Windows Media Player and I'm controlling everything with JavaScript. Per the client I only need to support IE 6 or greater which happens to make...
21
by: Cashie | last post by:
Hi I used to have an old version of Windows Media Player (pre-version 8), which used to play most tracks (WMA files) fine but I thought that I would upgrade to version 11. I upgraded to this...
1
by: SeanBoyWalton | last post by:
Hi, I'm currently trying to build a website for a DJ friend of mine and I have come stuck with a couple of issues. I've searched everywhere and put some code together but I still have problems. ...
4
nicebasic
by: nicebasic | last post by:
I have written a small French-English Dictionary using VB. I have come to a serious problem which is new to me. Maybe I didn't notice this problem before, but it's a bad bug in my program. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.