K
KNIX
I have a form with an Activex WMP control, and I wish to have the control
play a .wma file when a command button is clicked. I want the .wma to be
determined based on the currently displayed record (i.e. the record refers to
a song, and I want that song to play). If I hard-code the path to the .wma
into the Player.URL field, it works fine, but if I try to use a variable
(constructed from fields and constants), it does not. I get an error "The
file you are attempting to play has an extension (.wma") that does not match
the file format. Playing the file may result in unexpected behavior.", and a
"do you want to play the file? Yes/No" response request... if I tell it "Yes"
nothing happens, good or bad. If I tell it "No", it returns to previous
state. I have google-searched with every combination I could thing of, and
there doesn't seem to be much on using WMP in Access forms... I tried MSDN,
but there is almost nothing other than general information about the Activex
control, or WMP Object Model information. How can I get the control to
accept a variable as it's URL? Or is there a better/different way to get
there?
play a .wma file when a command button is clicked. I want the .wma to be
determined based on the currently displayed record (i.e. the record refers to
a song, and I want that song to play). If I hard-code the path to the .wma
into the Player.URL field, it works fine, but if I try to use a variable
(constructed from fields and constants), it does not. I get an error "The
file you are attempting to play has an extension (.wma") that does not match
the file format. Playing the file may result in unexpected behavior.", and a
"do you want to play the file? Yes/No" response request... if I tell it "Yes"
nothing happens, good or bad. If I tell it "No", it returns to previous
state. I have google-searched with every combination I could thing of, and
there doesn't seem to be much on using WMP in Access forms... I tried MSDN,
but there is almost nothing other than general information about the Activex
control, or WMP Object Model information. How can I get the control to
accept a variable as it's URL? Or is there a better/different way to get
there?