Storing PDF file in Access (1 Viewer)

ranchlaw56

New member
Local time
Today, 11:27
Joined
Dec 31, 2010
Messages
4
Is there a way to store a PDF file in Access?
I want to be able to store the file and if needed print it on request.
The database needs to be portable so linking poses a difficulty.
 

John Big Booty

AWF VIP
Local time
Tomorrow, 02:27
Joined
Aug 29, 2005
Messages
8,263
Welcome to the forum.

You would be better off storing the PDF's in a file that is in a constant location relative to the DB. You can then use something like;
Code:
Application.CurrentProject.path & "\Your File Name"
to determine where the files are stored.
 
Last edited:

John Big Booty

AWF VIP
Local time
Tomorrow, 02:27
Joined
Aug 29, 2005
Messages
8,263
Storing files directly in your DB will cause it to bloat unnecessarily.
 

ranchlaw56

New member
Local time
Today, 11:27
Joined
Dec 31, 2010
Messages
4
I realize the method I am trying to use is not the "proper" or "preferred" method. In the environment this database is going to be used it is better to have everything in one file to prevent file loss.

What I need to know is if it is possible to store the PDF file in an Access table and if so how.
 

John Big Booty

AWF VIP
Local time
Tomorrow, 02:27
Joined
Aug 29, 2005
Messages
8,263
You could possibly store a PDF file in an OLE field. However as already mentioned this is not recommended as it will bloat your DB. Have a look at this link for further comment.
 

accessfleet

Registered User.
Local time
Today, 12:27
Joined
Sep 29, 2010
Messages
91
In my MSDS table I use a hyperlink to access the material safety data sheet PDF files. Embeding the file could work but as others have mentioned it will bloat and slow down data access.

As you say, some feel safer if all the data is all in the same file, but another way of thinking about it is that seperate directories make the data safer because if something happens in one directory or file not all the data is lost.

good luck with your project.
 

Users who are viewing this thread

Top Bottom