|
-
May 23rd, 2011, 07:38 AM
#1
Save Outlook Attachment Directly To Access Database
I'm using Excel 2003 VBA (Userforms) as a front end for an app using an Access 2003 Database.
I have a meeting later this week to discuss a requirement I’ve been given for this app.
The requirement is to store Outlook attachments (mostly PDF files) into a database. I know how to do this providing the attachment has been saved to disk.
The users, however, want to be able to save the attachment directly into the database from Outlook itself without having to go through the extra step or two to save it to disk. This I’m not sure of.
The app is an Inquiry Tracking application, and each new inquiry gets a unique, system generated, Inquiry Tracking Number. All attachments saved to the database would need to be associated with that tracking number. In so far as Outlook is completely external to my application, I don’t know how I would be able to do this type of association, presuming I could develop a methodology that actually would save the attachment from Outlook to my database.
I am strongly leaning toward simply telling them they have to save the attachment to disk, and then let my program take over from there. But, as I have a bit of time before this meeting, I was wondering if any of you had any thoughts with respect to how something like they want could be accomplished.
-
May 23rd, 2011, 08:39 AM
#2
Re: Save Outlook Attachment Directly To Access Database
Hack One way that I can think of is
1) Vba code will save the attachment to a temp location. Please see this link to extract the attachments.
http://www.vbaexpress.com/kb/getarticle.php?kb_id=522
2) Upload the attachment in binary format in the database. Please see this function by Birger in
http://stackoverflow.com/questions/8...se-using-forms
3) Delete the attachment from the temporary location.
Sid
Last edited by Siddharth Rout; May 23rd, 2011 at 08:44 AM.
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|