HeathRamos
IS-IT--Management
I am trying to design a database that opens pdf files within an Access 2000 form.
I have read previous posts here but can't seem to get it right.
I created an event procedure and inserted the following:
Dim db As DAO.Database, rst As DAO.Recordset
Set db = CurrentDb()
Set rst = db.OpenRecordset("InfoTable")
Dim strFile As String
strFile = rst![Resume]
FollowHyperlink strFile
The field Resume is a text field that contains \\servername\filename.
When I click on the button in the form, it does open the file but only for the first record. To clarify, I have a form based on the InfoTable table and a button with this event procedure on it. I would like for it to open a different file for each record. Right now it opens the initial file for every record.
I have read previous posts here but can't seem to get it right.
I created an event procedure and inserted the following:
Dim db As DAO.Database, rst As DAO.Recordset
Set db = CurrentDb()
Set rst = db.OpenRecordset("InfoTable")
Dim strFile As String
strFile = rst![Resume]
FollowHyperlink strFile
The field Resume is a text field that contains \\servername\filename.
When I click on the button in the form, it does open the file but only for the first record. To clarify, I have a form based on the InfoTable table and a button with this event procedure on it. I would like for it to open a different file for each record. Right now it opens the initial file for every record.