Runtime error 2046!

  • Thread starter Thread starter Nathan Sanders
  • Start date Start date
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:="(e-mail address removed)", _
SUBJECT:="ACCOUNT PAYMENT NOTIFICATION", _
MESSAGETEXT:=MESSTEXT, _
EDITMESSAGE:=False


Any help much appreciated

Thanks
Nathan Sanders
 
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!
 
Back
Top