Emailing from access 2003

S

SteveWallace(roch)

I've got code from a database which already successfully sends email, and
copied it accross to a new one. When I try to run the code however I get an
error message

code breaks at:

Dim MyOutlook As Outlook.Application

Error message is:

compile error:
User defined type not defined
 
D

Douglas J. Steele

While in the VB Editor, select Tools | References from the menu bar and add
a reference to Outlook.
 
S

SteveWallace(roch)

Thanks That worked great

Douglas J. Steele said:
While in the VB Editor, select Tools | References from the menu bar and add
a reference to Outlook.
 
Top