Results 1 to 6 of 6
  1. #1
    bmoore2187 is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2019
    Posts
    6

    Question one button, two jobs, done right


    I've searched the site to see if my question was already answered, but no luck.
    I'm new to the program but i picked it up pretty easy, well my problem starts with a
    button that does two things and does it right. well i want my button to send off and email
    and input the data into a table (database) at the same time, with the email i want it to send off
    a pdf screen shot of the form, for confidentiality reasons, i cannot post pictures. I can get the button to work
    but the pdf sends the entire table (screenshot from every entry into the table) and not the current one, is it possible
    to get it to send just the pdf I input?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Commit record to table first. Then send a PDF of report filtered to that one record. If you really want to PDF the form, then need to filter the form to the one record.

    What code are you using for the 'screen shot'?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    bmoore2187 is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2019
    Posts
    6
    Quote Originally Posted by June7 View Post
    Commit record to table first. Then send a PDF of report filtered to that one record. If you really to PDF the form, then need to filter the form to the one record.

    What code are you using for the 'screen shot'?
    i use the build event and start with [EmailDatabaseObject] to get the email to screenshot the form and send it in a pdf, then under that i have the [GoToRecord] underneat to the table that i have setup to put the info into a database.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    You are using embedded macro? I never use macros, only VBA.

    So data is not filtered.

    GoToRecord just goes to new record row?

    You say macro references table? Not form?

    Just did a test. Apparently PDF does include new record even though still in edit mode when output form, not table.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    bmoore2187 is offline Novice
    Windows 10 Access 2016
    Join Date
    Apr 2019
    Posts
    6
    from my job i'm not allowed to post anything on it, but i used the build event, and i believe it sends the email first then the pdf screenshot of the record, but then it adds them all together it doesn't just send the one i'm sending the moment, sends all in the database, if that makes sense

  6. #6
    Minty is offline VIP
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,144
    That's a pretty messy way of doing things.
    Your button should really create a report in the correct format filtered to the single record, which could be emailed or better still printed to PDF and attached to the email it then generates.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

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

Similar Threads

  1. Error started coming up when Jobs run
    By RayMilhon in forum SQL Server
    Replies: 1
    Last Post: 11-05-2014, 04:52 PM
  2. Showing Pictures From Specific Customer Jobs
    By voodoo_ca in forum Database Design
    Replies: 5
    Last Post: 01-15-2014, 11:35 AM
  3. Show employee's booked jobs in a calendar view
    By 11Edward23 in forum Forms
    Replies: 2
    Last Post: 01-06-2014, 08:51 PM
  4. Replies: 8
    Last Post: 03-01-2013, 11:55 AM
  5. Replies: 21
    Last Post: 11-21-2010, 12:01 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