Results 1 to 4 of 4
  1. #1
    DMoody007 is offline Novice
    Windows 10 Access 2013
    Join Date
    Dec 2015
    Posts
    4

    Calling CameraCaptureUI in Module or VB.net App using CameraCaptureUI


    We have an MS Access 2013 DB that we need to capture an image and store with the record. I have found code that works in .net using the CameraCaptureUI that works nicely in VB. Wondering if I can use this interface in MS Access. Hoping someone in the forum has tried and knows if it can work.

    Two thought processes:
    1) Able to use the code directly in a module within access app (ideal solution for distribution purposes and maintenance)
    2) Create a VB.net app with the picture capture code. Call it from MS Access to aquire the image, pass to MS Access form, and close VB.net app. Not ideal but think it could work. I personally have never tried calling a VB.net app from within access. If someone could provide a snippet of code or suggestions for optimal search in google, it would be appreciated.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,522
    if you are on a form, and have a 'photo' field box,
    right click, INSERT OBJECT,
    the camera should be listed in the sources to load images.
    select camera and grab a photo.
    Does this not work?

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    I have not had the need for such a thing, but I recall someone posting an example of an app that uses the SendMessage function in the user32 library. I think the idea is that the camera displays in a Window and then Copy/Paste is used to store the image in an OLE object in a table.
    https://www.accessforums.net/access/...tml#post234099

    Another approach might be using TWAINs and the Microsoft Windows Image Acquisition Library. I do not have much experience with this library because it is not suitable for document scanning and I have not had a real need for it. However, it seems like it might work for your needs. You can make a reference to the library in Access via Tools>References. Here is a link to an overview. If you search the web, you should see VBA examples.
    https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

  4. #4
    DMoody007 is offline Novice
    Windows 10 Access 2013
    Join Date
    Dec 2015
    Posts
    4
    You both gave me some ideas to research. Thank you.
    VB.net forum gave me an idea too - Keep MS Access as database and use VB.net as GUI. Requires a little more programming but very possible.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Calling previous value to add with new value
    By 2skannan in forum Programming
    Replies: 3
    Last Post: 01-23-2013, 11:33 PM
  2. class module vs regular module
    By Madmax in forum Modules
    Replies: 1
    Last Post: 05-01-2012, 03:44 PM
  3. Replies: 4
    Last Post: 05-16-2011, 04:58 PM
  4. Calling A Module Function To Open A Form
    By orcinus in forum Modules
    Replies: 3
    Last Post: 09-29-2010, 04:43 PM
  5. calling function
    By ManvinderKaur in forum Programming
    Replies: 3
    Last Post: 07-22-2010, 10:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums