Hi,
We have a database at work with a register of all the chemicals we use on a daily basis. Each of these chemicals comes with a pdf document specification. All of these documents are stored in the folder C:\chemicals\pdf\.
What I'm working on is a way to connect each record in the database to the corresponding pdf document in the folder.
The name of the pdf files have the following format: Autonumber#Chemicalname.pdf.
Autonumber is the unique number assigned each record in the database.
The code I have so far goes like this:
So, how do I get this code to return the value in front of the separator #?
We have a database at work with a register of all the chemicals we use on a daily basis. Each of these chemicals comes with a pdf document specification. All of these documents are stored in the folder C:\chemicals\pdf\.
What I'm working on is a way to connect each record in the database to the corresponding pdf document in the folder.
The name of the pdf files have the following format: Autonumber#Chemicalname.pdf.
Autonumber is the unique number assigned each record in the database.
The code I have so far goes like this:
Code:
Private Sub pdfico_Click()
FollowHyperlink "C:\Chemicals\pdf\" & Me.ChemID & ".pdf"
End Sub
So, how do I get this code to return the value in front of the separator #?