Export .PDF Attachments

jschlapi

New Member
Joined
Aug 8, 2008
Messages
49
Hello,
I have a database that stores attachments (not too many - 150 total). I am not familiar with VBA code - I only know enough to be dangerous. I've heard there is a way to export all my 150 .PDF attachment to a directory on my C:/ drive.

My database name: Property Information Database
My Table containing attachment: Property List
Attachment field name: Attachment

Is there code that I can attach to a command button that will export all my .pdf attachments to my C:/ drive?

Thank you,
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I've never stored attachments in an Access table (I don't believe in the idea) so I've never used code to put them in, and certainly not to copy them over to a directory. If they're in a table, chances are they exist in a folder somewhere? I'd explore that possibility first since AFAIK, what you want to do is no simple task.

In a table, they exist as a special form of data which you cannot simply save so I think solutions for this task are rare. Suggest you open them one by one and simply save. You should find that if the native app stays open, the folder location may be retained, or you can set it in the program options so you don't have to continually navigate there. Take a look here and you'll see its not simple: How to export out the OLE object content to a folder (c:\temp) - Microsoft Access / VBA
 
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,375
Members
448,888
Latest member
Arle8907

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top