Results 1 to 8 of 8
  1. #1
    REAbernathy is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2012
    Posts
    46

    The format in which you are attempting to output the current object is not available.

    Good Morning,

    I am trying to send the current record via e-mail to one of my firms. When i click on my form button to try and send this information i get the following popup box that states "The format in which you are attempting to output the current object is not available" am trying to use Outlook 2007 to send this e-mail.I am using Access 2007 for my database....And Remember I am Still A Newbie.

    Private Sub Mail_Report_Click()
    On Error GoTo Err_Mail_Report_Click

    Dim stDocName As String
    Dim stEmail As String
    Dim stSubject As String

    stDocName = "TrackingSystemReport3"
    stEmail = "robert.abernathy@trakamericia.com"


    stSubject = "TrackingSystemReport3"

    DoCmd.SendObject acSendForm, stDocName, acFormatSNP, stEmail, , , stSubject, , , False

    Exit_Mail_Report_Click:
    Exit Sub

    Err_Mail_Report_Click:
    MsgBox Err.Description
    Resume Exit_Mail_Report_Click

    End Sub

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Does acFormatPDF work? I can't remember if 2007 dropped support for snapshot, or it's not installed by default or something like that. Brain getting old.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    REAbernathy is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2012
    Posts
    46
    So if acFormatPDF doesnt work then what can i use in it's place that does work? And you are not getting old you just have alot of things on your mind

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Did you try the acFormatPDF?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    REAbernathy is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2012
    Posts
    46
    I have another question? When I click on the Mail Report command button it is trying to mail all of the reports and all i want is the current report that was created. How do i make this work? Here is my code for the Mail Report can you tell me what I am doing wrong PLEASE.....I am almost feeling Competent enough to stop calling myself a NEWBIE........NOT

    On Error GoTo Err_Mail_Report_Click

    Dim stDocName As String
    Dim stEmail As String
    Dim stSubject As String

    stDocName = "TrackingSystemForm3"
    stEmail = "robert.abernathy@trakamericia.com"
    stSubject = "TrackingSystemReport3"

    DoCmd.SendObject acSendForm, stDocName, acFormatPDF, stEmail, , , stSubject, , , False

    Exit_Mail_Report_Click:
    Exit Sub

    Err_Mail_Report_Click:
    MsgBox Err.Description
    Resume Exit_Mail_Report_Click

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    For starters, I'd create a report and send that. You have a lot more control over the formatting that way. As to filtering, I usually do this:

    Emailing a different report to each recipient

    You can also base the report on a parameter query that limits it to the record on the form.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    REAbernathy is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2012
    Posts
    46
    Is this much easier than the why I am trying to do it? I have been searching and i havent seen anything with creating a report and sending it however i will keep looking. Will this also allow me to get the most recent record as well and later write a query to populate the send to address with?

  8. #8
    REAbernathy is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jul 2012
    Posts
    46
    I am so sorry i didn't understand your question. I have a report already created and its called TrackingSystemReport3 so how do i only send the most recent one and will the code above work for me?

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

Similar Threads

  1. Error Attempting to Export Data to IE9
    By Angrybox in forum Programming
    Replies: 9
    Last Post: 06-29-2012, 03:50 PM
  2. Output Object Dependencies
    By Tigger in forum Database Design
    Replies: 3
    Last Post: 04-28-2011, 08:18 AM
  3. Replies: 0
    Last Post: 02-26-2011, 06:54 AM
  4. Querry IIf Output Format (Access 2003)
    By Bruce in forum Access
    Replies: 2
    Last Post: 12-03-2009, 06:52 PM
  5. How to output only current record in query
    By mslieder in forum Access
    Replies: 0
    Last Post: 01-20-2006, 05:48 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