Solved

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

Posted on 2015-01-23
1
320 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

A short article about a problem I had getting the GPS LocationListener working.
This is an explanation of a simple data model to help parse a JSON feed
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

932 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

15 Experts available now in Live!

Get 1:1 Help Now