Avatar of JENNIFER NEWTON
JENNIFER NEWTON
Flag for United States of America asked on

Inserting a datasheet query into the body of an email using VBA?

I'd like to have a function where a user presses a button and access creates an email where the body of an email is the results of a datasheet query.  Is such a thing possible?
EE-Email-Question.jpg
Microsoft AccessVisual Basic Classic

Avatar of undefined
Last Comment
John Tsioumpris

8/22/2022 - Mon
John Tsioumpris

You can do 3 things
  • With VBA you can insert a table into the body of your email and "transfer" the query results to it
  • You can create an HTML table and populate it again with the results of your data....
  • Possible (not tested) copy paste the result of your datasheet to the email...it works for Excel as you can see in
  • this
  • post
JENNIFER NEWTON

ASKER
•With VBA you can insert a table into the body of your email and "transfer" the query results to it

That's brilliant, John.  How would I do that?  I did a little google-fu and the only thing I can come up with is how to transfer a query or table as an attachment to an email.
ASKER CERTIFIED SOLUTION
Norie

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
John Tsioumpris

Check this answer from EE
Your help has saved me hundreds of hours of internet surfing.
fblack61