Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows 10 Camera

Status
Not open for further replies.

priac

Technical User
Feb 8, 2002
47
0
0
US
How to I start the camera from Access. I have an Inventory program that uses pictures of the part. I would like to have a button to click that would start the Windows camera app.
 
Take a look at this where someone asked the same or similar question and found their own solution, posting back to the site:

Ben said:
If anyone is interested I have found a work-around for this problem. I used this website to help create a Shortcut to the Camera App. I then used VBA to run the Shortcut. Works well enough for what I need to do! The code to run the link is as follows......

Code:
Dim MyFile As String 
Dim Cmd As String 
MyFile = "C:\Users\Name\Desktop\CameraTest.lnk" 
Cmd = "RunDLL32.EXE shell32.dll,ShellExec_RunDLL " 
Shell (Cmd & MyFile)

"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57
 
Or, from at least W10 onwards:

Code:
CreateObject("WScript.Shell").Run "microsoft.windows.camera:"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top