Data Extraction From an .msg File (1 Viewer)

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 00:57
Joined
May 7, 2009
Messages
19,229
make sure the variables j and bytPostCode is defined on your addToTable sub

dim j as Long
dim bytPostCode as Byte
 

JohnLee

Registered User.
Local time
Today, 09:57
Joined
Mar 8, 2007
Messages
692
Hi arnelgp,

Just got back into office checked that sub and both variables are declared as per your post.

I will run the process again with a smaller number of .msg files and see what happens.

Regards

John
 

JohnLee

Registered User.
Local time
Today, 09:57
Joined
Mar 8, 2007
Messages
692
Hi arnelgp,

I've re-run the program after checking that those variable were correctly declared as per your post and the same problem occured.

Could it be that the postcode field is empty, I have checked each of the text files and found that not all the postcode fields have a postcode in them, could it be that, that is causing the error message to generate.

Regards

John
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 00:57
Joined
May 7, 2009
Messages
19,229
sorry for late reply plz, give me more .msg files (those troubled one) and i will check.
 

JohnLee

Registered User.
Local time
Today, 09:57
Joined
Mar 8, 2007
Messages
692
Hi arnelgp,

Please find attached some more .msg files containing both with and without postcode information in all three postcode fields.

Your assistance is most appreciated.

Regards

John
 

Attachments

  • Sample Files.zip
    58.2 KB · Views: 125

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 00:57
Joined
May 7, 2009
Messages
19,229
pls. see attached.
 

Attachments

  • Test.mdb
    316 KB · Views: 129

JohnLee

Registered User.
Local time
Today, 09:57
Joined
Mar 8, 2007
Messages
692
Hi arnelgp,

Thank you for all your help, that worked, can I ask what was the problem that caused the code error out, was it the fact there were postcodes with no postcode information or was it something else.

Anyway your help has been fantastic.

Thank you again

John
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 00:57
Joined
May 7, 2009
Messages
19,229
it was my mistake i was looking for the word "vaillantthinksahead" in the .msg file when it was changed to "vaillant.com" in the new .msg files.
 

Users who are viewing this thread

Top Bottom