Link to home
Start Free TrialLog in
Avatar of Howco
HowcoFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Capture Webcam Image in MS Access form field

Hi,

I have almost completed a database to log visitors and times.  
I have a form with visit details of the visitor and who they are visiting.

However, I still need to find a way to do the following:

I want to be able to click a button on the form and capture the webcam.
I then want this captured image to be stored in the frame on the form and then update the table Visitors.

I have never used a webcam within Access so haven't a clue where to start.

Cheers people!
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

I'm not sure, but I THINK you would need to use the DirectShow API - you can start looking here:
http://msdn.microsoft.com/en-us/library/ms783323(v=vs.85).aspx
there are several ways to go around this, i ended up using WIA (windows image acquiring...?)
using this, and a logitech web-cam i could take a picture from an access form and then do whatever with it.
it mentioned the web cam since this wia doesnt (or didnt at the time, around 2006-7) support all web cams and some i tested just didnt do the trick (while still functioning otherwise)

if i can remember right, it's all  in wiaaut.dll which is supposed to be in system32 forlder
Avatar of Gugro
Gugro

ASKER CERTIFIED SOLUTION
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
One thing to note is the resolution of the web cam.

A lot of web cams do not have a high enough resolution to be used as a "camera" that and produce really clear images...
Avatar of Howco

ASKER

It is only to capture visitor pictures for a gatepass database.

I have done the vast majority of it now.  I just need to sort out the image capture side of it.

I am about to test the options given.  I will report back later today.

Thanks for all of your input.
Avatar of Howco

ASKER

This seems like the better solution after trying them all.

Many thanks guys.