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:="(e-mail address removed)", _
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top