A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Export Outlook 2003 Email Message To Access 2003 Table



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old May 30th 06, 04:45 AM posted to microsoft.public.outlook.program_vba
Gwhit
external usenet poster
 
Posts: 2
Default Export Outlook 2003 Email Message To Access 2003 Table

Hello,

My client receives emailed shipping orders sent via Goldmine software into
her Outlook 2003 user-named folder under the Personal Folders tree named
"WHEE".
(The product names and folders are spelled wrong to protect the innocent)

In the body of each email, the orders appear in a two-column table. The
format never changes, i.e.,

First Column =

BILL TO INFORMATION
Name: Lottie Dah
Address: 2222 Friggin Deal
City: Big Whoop State: BO
Phone: (222)456-1234


CREDIT CARD INFO:
Name on Card: Lottie Dah
Method of Pymt: Mastercard
Cred Card #: ################
Exp Date: ####
CVV/CVC: ###

ORDER INFORMATION:
Item 1: Super Duper Rocket To The Moon Vitamins
Qty 1: 1
Price 1: 59.76
Total 1: 59.76
Item 2: Relax After Your Landing - Green Tea
Qty 2: 1
Price 2: 35.73
Total 2: 35.73

Item 3: Bacon-Flavored Lactose Intolerance Formula
Qty 3: 1
Price 3: 25.00
Total 3: 25.00

Second Column =

ORDER INFORMATION CONTINUED:
Item 4: Sucker Punch Drink Mix
Qty 4: 1
Price 4: 5.95
Total 4: 5.95

Item 5: Veins of Tungsten Iron Tablets
Qty 5: 2
Price 5: 23.00
Total 5: 46.00

Item 6: Blow N Blast Colon Cleanser
Qty 6: 1
Price 6: 33.00
Total 6: 33.00

My client uses a software called E-Grabber to transfer the data into Access.
The only problem is, the software only regards the first Item data. Her
workers then have to manually enter the other remaining 5 records.

I've been looking diligently through the internet and have found many
"almosts" using vba to guide me into extracting the entire needed data from
the email body through the WHEE folder and exporting into Access.

I'm sure it's out there, but I've not hit upon it yet.

Many thanks in advance.
Ads
  #2  
Old May 30th 06, 05:36 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Export Outlook 2003 Email Message To Access 2003 Table

Parsing the message body properly will require diligent use of VBA string
procedures, like InStr, Mid, Left, Right, Split, etc.

You can also save the e-mail to a .txt file and use the FileSystemObject and
TextStream Microsoft Scripting Runtime library. The TextStream object has a
handy ReadLine method that can make parsing a lot easier.

However, if you alter your e-mails to include the relevant data in a
comma-delimited format as an attachment, your efforts in migrating this
information into a database will be significantly decreased.

--
Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"Gwhit" wrote:

Hello,

My client receives emailed shipping orders sent via Goldmine software into
her Outlook 2003 user-named folder under the Personal Folders tree named
"WHEE".
(The product names and folders are spelled wrong to protect the innocent)

In the body of each email, the orders appear in a two-column table. The
format never changes, i.e.,

First Column =

BILL TO INFORMATION
Name: Lottie Dah
Address: 2222 Friggin Deal
City: Big Whoop State: BO
Phone: (222)456-1234


CREDIT CARD INFO:
Name on Card: Lottie Dah
Method of Pymt: Mastercard
Cred Card #: ################
Exp Date: ####
CVV/CVC: ###

ORDER INFORMATION:
Item 1: Super Duper Rocket To The Moon Vitamins
Qty 1: 1
Price 1: 59.76
Total 1: 59.76
Item 2: Relax After Your Landing - Green Tea
Qty 2: 1
Price 2: 35.73
Total 2: 35.73

Item 3: Bacon-Flavored Lactose Intolerance Formula
Qty 3: 1
Price 3: 25.00
Total 3: 25.00

Second Column =

ORDER INFORMATION CONTINUED:
Item 4: Sucker Punch Drink Mix
Qty 4: 1
Price 4: 5.95
Total 4: 5.95

Item 5: Veins of Tungsten Iron Tablets
Qty 5: 2
Price 5: 23.00
Total 5: 46.00

Item 6: Blow N Blast Colon Cleanser
Qty 6: 1
Price 6: 33.00
Total 6: 33.00

My client uses a software called E-Grabber to transfer the data into Access.
The only problem is, the software only regards the first Item data. Her
workers then have to manually enter the other remaining 5 records.

I've been looking diligently through the internet and have found many
"almosts" using vba to guide me into extracting the entire needed data from
the email body through the WHEE folder and exporting into Access.

I'm sure it's out there, but I've not hit upon it yet.

Many thanks in advance.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
import access odbc linked table to outlook Jeff Outlook - Using Contacts 6 May 12th 06 04:51 PM
How do I import email addresses from an Access table? Chris Outlook - Using Contacts 1 April 7th 06 02:58 PM
How to control xp outlook 2003 contacts table grid line color? apfwebs Outlook - Using Contacts 0 March 27th 06 07:58 PM
Link Access Table to Exchange Public Folder Contacts Brian Outlook - Using Contacts 0 January 29th 06 09:05 PM
For Outlook 2003 I cannot import/export? Eric Outlook - Using Contacts 3 January 9th 06 04:00 AM


All times are GMT +1. The time now is 08:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.