G
grapisarda
Guest
Hello,
I'm using MAPI to send queries as email attachemets in an Access 2K db. Since I am sending more than one mail message in the same function, I'm am using the accSendObject Class provided in MS Knowledge Base Article 260819. When I run the program on a WIN2K OS with Outlook2000 installed, the app works fine. When I take the same DB and run it on WinXP with Outlook2000, the function runs, the email is sent with the attached query, but upon completion of the code, I get a popup stating that MS Access has encountered a problem and needs to close, whereupon the db is shut down. I've tried to narrow down the exact event that is causing this problem and it is failing upon removing the MAPISession...
'Log out of the MAPI session
MAPISession.Logoff
Set MAPIAttachment = Nothing
Set MAPIRecipient = Nothing
Set MAPIMessage = Nothing
Set MAPISession = Nothing <-- DB crashes here
Exit Sub
I'm hoping someone can give me some information as to why this might be occurring. Is there a compatibility issue between winXP and Outlook2000 with respect to MAPI functions? Anyone out there have this working in a WinXP/Outlook2000 environment?
Thanks!!!
I'm using MAPI to send queries as email attachemets in an Access 2K db. Since I am sending more than one mail message in the same function, I'm am using the accSendObject Class provided in MS Knowledge Base Article 260819. When I run the program on a WIN2K OS with Outlook2000 installed, the app works fine. When I take the same DB and run it on WinXP with Outlook2000, the function runs, the email is sent with the attached query, but upon completion of the code, I get a popup stating that MS Access has encountered a problem and needs to close, whereupon the db is shut down. I've tried to narrow down the exact event that is causing this problem and it is failing upon removing the MAPISession...
'Log out of the MAPI session
MAPISession.Logoff
Set MAPIAttachment = Nothing
Set MAPIRecipient = Nothing
Set MAPIMessage = Nothing
Set MAPISession = Nothing <-- DB crashes here
Exit Sub
I'm hoping someone can give me some information as to why this might be occurring. Is there a compatibility issue between winXP and Outlook2000 with respect to MAPI functions? Anyone out there have this working in a WinXP/Outlook2000 environment?
Thanks!!!