Our admin assistants have a database to track employee travel. I have no idea who built it, but it has one table (called TRAVEL). Each record has an autonumber primary key, which the admins use as the travel authorization number on the printed form employees fill out when they travel. The admin scans the hard copy authorization form and saves it to our network with the name being the autonumber primary key in the database table.
It’s worked fine for the past 10 years. Now, a new admin has asked if we can link the pdf’s to the database so that supervisors can go to the database, see the employee’s travel record, click a button on the form, and it will open the corresponding PDF from the network. I don’t know how to write code to make the button go to the network drive and open the PDF.
From experience, I can tell you that not every admin is diligent about scanning the hard copy and saving it to the network right away, so there will be times when there is a record in the database that doesn’t have a pdf on the network, yet. In that case, they want a message that says something about the PDF file doesn’t exist.
Can someone help me with this, please? The next question is, the database is split – data table (TRAVEL) backend and the data entry form (TravelDataEntry) is on each admin’s desktop. How can we get this button on all the admins’ data entry form?
Thank you. I can post a copy of the database (with bogus info) if that would help.