colins5286
New member
- Local time
- Today, 13:57
- Joined
- Feb 13, 2007
- Messages
- 9
I have a customer database and would like to link files to each record. I can do this using hyperlinks. My aim though is to open the record and click a button, this would then capture an image from my scanner, save it to a pre-defined location and log update the attachments field.
I have been looking into the Windows Image Aquisition functions but cant seem to get them working yet.
Using this I get an error saying no WIA device of this type is available.
I have been looking into the Windows Image Aquisition functions but cant seem to get them working yet.
Code:
Dim commondialog1 As Object
Dim img As ImageFile
Set commondialog1 = CreateObject("wia.commondialog")
Set img = commondialog1.ShowAcquireImage
img.SaveFile ("c:\test.jpg")
Using this I get an error saying no WIA device of this type is available.