How To Embed A YouTube Video In Access Form

Hi everyone,

This post will show you basically how to embed a YouTube video in your Access form.

First you need to add a Webbrowser control to your form:

You can either activate this control when the form loads, or when a command button is clicked. The code is basically the same:

Private Sub btnShow_Click()
    Dim strURL As String
    
    
    strURL = "https://www.youtube.com/watch?v=WeJlwR5HP2o"

    Me.WebBrowser0.Navigate strURL
    
End Sub

After you click the button or load the form, this will be your result:

Let me know if you have any questions!

Offsite Related Information:

“Go Fund Me” Page


($5 suggested amount)

(…10% of your gift amount will go to charity)

Free! Subscribe To Our YouTube Channel!

Free MS Access VBA Programming Course

Facebooktwitterredditpinterestlinkedinmailby feather
Tags: , , ,