Runtime error 2046!

N

Nathan Sanders

Hi,

Please help me,

I am running access 97

I have a piece of code which sends email(s) to various addresses. It used
to ork perfectly but since I upgraded to XP I get the following error

runtime error 2046
the command or action 'sendobject' isn't available now

The code is as follows;

DoCmd.SendObject _
OBJECTTYPE:=acSendQuery, _
outputformat:=acFormatHTML, _
TO:="[email protected]", _
SUBJECT:="ACCOUNT PAYMENT NOTIFICATION", _
MESSAGETEXT:=MESSTEXT, _
EDITMESSAGE:=False


Any help much appreciated

Thanks
Nathan Sanders
 
D

Dan

Good Morning!

It appears from your example below that you have left out
the parameter for "ObjectName". Access needs to know which
query to use as in:

ObjectName:="Query1"

Good Luck!
 
Top