Object educational help, please

  • Thread starter Thread starter Lee Taylor-Vaughan
  • Start date Start date
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
 
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
 
Back
Top