Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you apply style formats to Outlook emails, etc, from Access? 1

Status
Not open for further replies.

Najemikon

Technical User
Mar 5, 2002
168
GB
Hi,

I have several forms with buttons that can send fields to emails, tasks & appointments in Outlook. Very simple & works a treat. For example:

outlook subject = field1
outlook memo = "Dear " & field 2 & vbnewline & vbnewline & field 3


I'd like to add more details, but so the resultant Outlook object doesn't appear cluttered, I'd like format it; smaller fonts, headings in bold or italic. Maybe even colours!

Is this at all possible?
 

Most likely, you will need to create an outlook application object and include the outlook object library.

Mordja
 
In order to do some formatting stuff you may take a look at the HTMLBody property.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
It did indeed, PH! Instead of '.body' you use '.HTMLbody' & then you can apply standard formatting codes. Why is it the things that seem the most complicated turn out to be really straightforward? :)

Course, now you've helped me unlock all sorts of colours, fints, sizes, etc, I've let it go to my head & rather than uncluttered emails, I'm going to have a retro 70s feel to the whole affair! It can only end in tears. ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top