PDA

View Full Version : Checking for file presence



ProteanBeing
12-27-2007, 10:27 AM
I have a form that shows one row of data like a record in a database. One of the cells is a primary key. Each time I go to the next row (record) I would like to see if there is a pdf file using the primary key. For example: if the primary key for the current record is 6421, I want to see if there is a file 6421.pdf and then create a hyperlink to that file on the form. Also is there a help file available for adobe controls?

rory
12-28-2007, 04:55 AM
You can use Dir("path and file name") to check if the file exists. If it doesn't, Dir will return ""
If there is a help file, Adobe would provide it - check the program directory (or the Adobe forums).