Share via

Email data using Access SendEmail macro action

Anonymous
2022-06-23T14:10:25+00:00

How can I send email with the last inserted record data using SendEmail macro action? or is this a job only for vba?

Thank You

Microsoft 365 and Office | Access | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

10 answers

Sort by: Most helpful
  1. Anonymous
    2022-06-23T14:45:57+00:00

    I'm sitting in Query design mode and trying to figure out how to use Max in criteria. is this possible?

    then i was just going to email the query

    Was this answer helpful?

    0 comments No comments
  2. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2022-06-23T14:41:39+00:00

    Something like:

    select * from Orders

    where OrderDate = (select Max(OrderDate) from Orders)

    Was this answer helpful?

    0 comments No comments
  3. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2022-06-23T14:35:27+00:00

    Ah, SendEmail is available in data macros. You would have to concatenate the Body argument with your field values. Sounds doable, but not something I have done myself.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2022-06-23T14:33:11+00:00

    how do I set query criteria for the most recent date?

    Was this answer helpful?

    0 comments No comments
  5. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2022-06-23T14:32:09+00:00

    I'm not familiar with the SendEmail macro action, but I know there is EMailDatabaseObject. So if you created a report that shows the last record, you can mail it out as a report converted to PDF that way.

    Was this answer helpful?

    0 comments No comments