Results 1 to 4 of 4
  1. #1
    mjwillyone is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2010
    Posts
    11

    Problem creating an email using the oCmd.SendObject command

    Friends,

    In the past I have successfully created buttons on forms that allow me to e-mail particular field values to individuals. This is a great way of asking individuals to help us keep our records current. I have not had any problems with small e-mails.



    I am working now, however, on a VB scripted button that will place the value of 15 or so fields in one e-mail. I created the script but I am wondering if there is a limit to the number of characters I can use with the oCmd.SendObject command. Here is the error I receive:

    "Compile Error: Method or data member not found" and it highlights the following text: & Me.Check533

    The above field name is correct so I don't know what the problem may be.

    I have attached a full copy of the VB script.

    Thanks,
    Mike

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    Do you plan to replace the "& Email Address &" with the actual email addy?

  3. #3
    mjwillyone is offline Novice
    Windows XP Access 2007
    Join Date
    Dec 2010
    Posts
    11
    I hadn't at this point ... is that the problem?


    Quote Originally Posted by RuralGuy View Post
    Do you plan to replace the "& Email Address &" with the actual email addy?

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    I doubt it but I just had to ask. I could not find the limit on the argument but I'm sure it has one. The only way I know of to troubleshoot this issue is to start small and keep building up the string until it breaks again. I like CDO and here's my favorite email site: http://www.granite.ab.ca/access/email.htm

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

Similar Threads

  1. Replies: 1
    Last Post: 11-17-2010, 11:24 AM
  2. Set command problem in legacy system
    By ch875299 in forum Programming
    Replies: 8
    Last Post: 02-02-2010, 04:59 PM
  3. Email sent via DoCmd.SendObject
    By silverback in forum Programming
    Replies: 0
    Last Post: 10-29-2009, 06:26 AM
  4. Send email using SendObject instruction
    By stecco in forum Access
    Replies: 4
    Last Post: 09-09-2009, 01:55 AM
  5. Problem Creating Report
    By Access_CFO in forum Reports
    Replies: 3
    Last Post: 04-01-2009, 01:08 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