Results 1 to 4 of 4
  1. #1
    spoonman is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    5

    email conformation

    created some marco code... that i want it to create a pdf of a form and then email it. but the only problem is i cant figure out how to select the current record and not every record... i want it to be be like when you choose the selected record only when you print out or when you create a button like to another form that opens only that records infomation. kinda like the where condition when you open a form, report, table, query.



    is it possible to create a where condition in vb or marco so that it only makes a pdf copy of the record current record?

    Code:
    '------------------------------------------------------------
    ' EMail_Confirmatin
    '
    '------------------------------------------------------------
    Function EMail_Confirmatin()
    On Error GoTo EMail_Confirmatin_Err
    
        DoCmd.SendObject acForm, "Email Confirmation", "PDFFormat(*.pdf)", "", "", "info@.............com", "Confirmation Email", "...............wants to thank you for.", True, ""
    
    
    EMail_Confirmatin_Exit:
        Exit Function
    
    EMail_Confirmatin_Err:
        MsgBox Error$
        Resume EMail_Confirmatin_Exit
    
    End Function

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    Either open the report first in preview mode restricting it to the record:

    http://www.baldyweb.com/wherecondition.htm

    Or use this technique, which is probably what I would do to avoid the overhead of opening the report:

    http://www.granite.ab.ca/access/emai...recipients.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    spoonman is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    5
    you gave me an idea from this material. thanks

  4. #4
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    No problem.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 1
    Last Post: 05-23-2011, 08:07 AM
  2. Replies: 4
    Last Post: 04-13-2011, 10:11 AM
  3. send email to email addresses in database?
    By cnstarz in forum Access
    Replies: 5
    Last Post: 03-02-2011, 09:46 PM
  4. Email from report to Email body
    By Ehmke66 in forum Programming
    Replies: 4
    Last Post: 01-03-2011, 01:06 PM
  5. Due date email
    By windwardmi in forum Forms
    Replies: 4
    Last Post: 12-04-2010, 04:49 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