Results 1 to 7 of 7
  1. #1
    sspreyer is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Nov 2013
    Posts
    36

    how to email current record show in form as pdf copy of the report

    hi to all you access gods



    i'm trying to email current record show on form by command button "Form name is new job" and i would like it to converts the report "report name is asset details" in to pdf attachment to email have issues how to filter it to current record show only the field guess you would filter it by will be the primary key " primary key field name is ID"

    thanks in advance

    shane

  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,642
    One way is to open the report in Preview mode filtered using this:

    BaldyWeb wherecondition

    then use SendObject to send the report, then close it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    sspreyer is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Nov 2013
    Posts
    36
    hi

    thanks but i still can't manage to get this to work how would i lay this out using macro builder sorrry my knowledge is great i dont no how to lay the code out basically

    cheers shane

  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,642
    What I posted is VBA code, not a macro. If you want to use a macro, you'd use OpenReport with a wherecondition, SendObject, then Close to close the report.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    sspreyer is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Nov 2013
    Posts
    36
    hi
    thanks for your help what would i put as the where conditon field ?

    yet again thanks for your time

    shane

  6. #6
    sspreyer is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Nov 2013
    Posts
    36
    thanks for your help after abit of fiding i have done it cheers

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Happy to help!
    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. Email a report of the current record.
    By jonudden in forum Reports
    Replies: 4
    Last Post: 08-21-2023, 07:37 AM
  2. Email to Current Record Only
    By cbrsix in forum Programming
    Replies: 4
    Last Post: 09-27-2013, 08:14 AM
  3. Replies: 2
    Last Post: 04-02-2013, 02:24 AM
  4. Show only current record in report from form/subform
    By stelioshania in forum Reports
    Replies: 0
    Last Post: 03-02-2011, 02:19 PM
  5. copy current record to new record
    By er_manojbisht in forum Forms
    Replies: 1
    Last Post: 02-27-2010, 05:31 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