I have a VB6 application that manages tasks. When
the status of a tack changes, the program generates
an email and sends it thru outlook. I would like
to have a table in access to save the emails for
the purpose of documentation. Access has a type of
object, but when i try to set the field to the
MAPIMessage.object I get an error. Is what im trying
to do possible and what am I doing wrong?
Thanks
Normally that kind of error is a type mismatch error. The object in Access and the Mapimessage.Object are 2 different things (even though they have the same name).
If you cant get that to work let me suggest that you CC or BCC the email to a logging mailbox so you can look it up from several different machines. Then from the machine that sends the email write the fields to an access table. Setup your access datbase to have columns for SendTo, Subject, MessageText, TimeSent, etc.
Good Luck
Also search Microsoft.com for information on CDO and CDOSYS. You can use this instead of MAPI/Outlook profiles.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 1  Reply