figurinitout
New member
- Local time
- Today, 00:48
- Joined
- Sep 25, 2007
- Messages
- 2
Hey all you Access geniuses - hope you can help me. I have a table with 12000 records. Each record has a hyperlink field with a path to a pdf file. But, although a path is set up for each record, there isn't actually a pdf file in existence for every single record. In the same table I have a yes/no field that I would like to indicate whether there is a pdf file in existence or not for that record. Can someone help me write the code in order to automate this update? I tried writing a query to do this, but I wasn't able to get the query to look to see if the pdf file exists before it updated the yes/no field.
The table where these fields are located is called: INVENTORY CERTS. The field that contains the hyperlinked paths is called: CERT PATH. The yes/no field is called: PDF AVAILABLE.
I would like the program to look to see if the file per the path in the hyperlink field CERT PATH exists, if it does exists, update the field PDF AVAILABLE to yes ("-1"). If it doesn't exists, update the field PDF AVAILABLE to no ("0"). I would want it to do this for each record.
I would like to be able to run this code whenever I need to -- when I know new pdf files have been added. Maybe even attach it to a button in my maintenance menu.
Thanks in advance for any help you can give me!

The table where these fields are located is called: INVENTORY CERTS. The field that contains the hyperlinked paths is called: CERT PATH. The yes/no field is called: PDF AVAILABLE.
I would like the program to look to see if the file per the path in the hyperlink field CERT PATH exists, if it does exists, update the field PDF AVAILABLE to yes ("-1"). If it doesn't exists, update the field PDF AVAILABLE to no ("0"). I would want it to do this for each record.
I would like to be able to run this code whenever I need to -- when I know new pdf files have been added. Maybe even attach it to a button in my maintenance menu.
Thanks in advance for any help you can give me!
