Results 1 to 2 of 2
  1. #1
    Hello World is offline Novice
    Windows XP Access 2002
    Join Date
    Sep 2011
    Posts
    13

    Quick Q about SendObject

    Hi there,

    Can anyone please tell me how I go about using the SendObject command?

    Where do I put the following syntax and how do I link it to a command button on my form?

    DoCmd.SendObject [type][, name][, format][, to][, cc][, bcc][, subject][, body][, edit][, template_file]

    I've been reading up on it for the past 90 mins to no avail!!

    Thanks

  2. #2
    pdebaets is offline Competent Performer
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    235
    Here's a simple example of code to put in your command button OnClick event procedure:

    Code:
    DoCmd.SendObject _
        , _
        , _
        , _
        "ToJohn@doe.com", _
        , _
        , _
        "Subject", _
        "Message", _
        False
    This will send an e-mail to "ToJohn@doe.com"

Please reply to this thread with any new information or opinions.

Similar Threads

  1. sendobject acsendreport
    By mikeb in forum Programming
    Replies: 2
    Last Post: 09-17-2011, 03:02 AM
  2. Stop SendObject Macro
    By OpsO in forum Import/Export Data
    Replies: 1
    Last Post: 08-19-2010, 09:56 AM
  3. SendObject
    By weshader in forum Access
    Replies: 1
    Last Post: 11-09-2009, 04:19 PM
  4. SendObject Message
    By williammarino in forum Forms
    Replies: 4
    Last Post: 10-06-2009, 01:54 AM
  5. DoCmd.SendObject Help
    By bgreer5050 in forum Programming
    Replies: 0
    Last Post: 01-12-2007, 06:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums