Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / April 2004

Tip: Looking for answers? Try searching our database.

Runtime error 2046!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nathan Sanders - 28 Apr 2004 22:53 GMT
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:="xxxxxxx@xxx.CO.NZ", _
   SUBJECT:="ACCOUNT PAYMENT NOTIFICATION", _
   MESSAGETEXT:=MESSTEXT, _
   EDITMESSAGE:=False

Any help much appreciated

Thanks
Nathan Sanders
Dan - 29 Apr 2004 16:03 GMT
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!

>-----Original Message-----
>Hi,
[quoted text clipped - 25 lines]
>
>.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.