Object educational help, please

L

Lee Taylor-Vaughan

Hi,

how can i use the funtions available in ms-office document scanning....

1. click a button on a form and load a (scanning) preset so that a document
can be scanned.

2. then automatics using save the document related to the value in a text
box on a form.

This issue i really want to learn is how to declare and use the functions
for the scan, and then pass a value from a txtbox to save the file.

tia

lee
 
M

Michel Walsh

Hi,


That's done with mso (Microsoft Office Library). You probably need to add a reference to it first
(mso?.dll).


I suggest you take a look in a book like "Access XXXX Developers' Handbook, Volume I", at Sybex,
for more details (XXXX= your version).

Here a small example, inspired from it:



Dim varItem As Variant
With Application.FileSearch
.NewSearch
.LookIn="C:\"
.FileName="*.txt"
.SearchSubFolders= False
.Execute
For Each varItem In .FoundFiles
Debug.Print varItem
Next varItem
End With



There is a LOT MORE about it, it definitively goes out of scope of a newsgroup message.


Hoping it may help,
Vanderghast, Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top