Well, here is what I had to do since I couldn't use the ocx that covers this, and I couldn't find an API:
I have a folder with files that use the patient's ssn as the beginning of the file name.
I created a button on the form that takes the patient's ssn, then loops through the folder where the scanned docs are and pulls only those that start with the patient's ssn.
Then it pushes this data to a temporary table, and opens a continuous form that lists all the files. On the continuous form there is a button next to each record that says Attach this file.
If you click that button, the form closes, the file name and path are pushed to the proper field in the database, and the temporary table is cleared out.
So it is not only an OpenFileDialog box, but it is prefiltered for files pertaining to the patient whose record is being worked on.
It doesn't look to fancy yet, but it will tomorrow.
Thanks for looking in. I hope this helps someone else.
mmcdonal
|