Access Modern Web Browser Control – Webcam

Image of a webcam

So you’ve seen that recently I’ve been playing around with the new Modern ‘Edge’/’WebView2’ Web Browser control that recently got added to Access MS365.

and several more.

And, in my previous post, I demonstrated how easy it was to save a base64 html image:

well today, I’m going to implement that base64 code so we can fully automate the PC’s webcam without the need of any 3rd party tools, APIs, …  Easy as can be!


The end result with very little code is:
Microsoft Access Webcam Automation Demowhere we have 3 buttons:

  • one to take a picture
  • one to clear the picture
  • one to save the currently displayed captured picture

I hope you can all appreciate my daughter’s teddy bear working very hard at developing all this code for you! (Yes, it’s a bear that wears a penguin shirt!)

In the demo below, I provide 2 demo forms:

  1. One which automatically saves the image to a predetermine folder and assigns the image a predetermined filename
  2. One that prompts the user as to where to save the image and under what name (just to illustrate how this can be done)

What’s also nice here, is since this involves no ActiveX, APIs, dlls, … it doesn’t require any special references, is bitness independent, … Life is great sometimes!

I do hope this helps a few of you out there.
 

Demo Database

Feel free to download a 100% unlocked copy of a sample database I have put together to illustrate some of what is discussed above by using the link provided below:

Download “Webcam Demo” Webcam.zip – Downloaded 4393 times – 64.38 KB

Notice About Content/Downloads/Demos

Disclaimer/Notes:

If you do not have Microsoft Access, simply download and install the freely available runtime version (this permits running MS Access databases, but not modifying their design):

Microsoft Access 2010 Runtime
Microsoft Access 2013 Runtime
Microsoft Access 2016 Runtime
Microsoft 365 Access Runtime

All code samples, download samples, links, ... on this site are provided 'AS IS'.

In no event will Devhut.net or CARDA Consultants Inc. be liable to the client/end-user or any third party for any damages, including any lost profits, lost savings or other incidental, consequential or special damages arising out of the operation of or inability to operate the software which CARDA Consultants Inc. has provided, even if CARDA Consultants Inc. has been advised of the possibility of such damages.