Solved

MS Access 2013 VB embedded WMPlayer want to code button to play

Posted on 2015-01-23
1
331 Views
Last Modified: 2015-02-01
I have embedded Windows Media Player (WMPLAYER.OCX.7) on a form.
In VB the code would be
WindowsMediaPlayer0.Ctlcontrols.Play  with the player name WindowsMediaPlayer0

I cannot find the "Play" command in Access.  there is no CtlControls.
0
Comment
Question by:VermontDane
1 Comment
 

Accepted Solution

by:
VermontDane earned 0 total points
ID: 40571972
so I found the answer.  In VB for Applications in Access, one must create an object of type WindowsMediaPlayer
then you get the hidden list play, pause, etc.  my WMPlayer is "WindowsMediaPlayer0" on my Access Form.  Another MS undocumented method.

Dim WMP As WindowsMediaPlayer
Set WMP = Me.WindowsMediaPlayer0.Object

WMP.Controls.play
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now