ms+access+course/ - format emails
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access VBA Training and help » ms+access+course/ - Format emails

ms+access+course/ - Format emails

The UK's most regular instructor-led training courses.
Training information: ms+access+course/ · Courses in microsoft access · VBA training in London

resolvedResolved · Low Priority · Version Standard

Format emails

Julie has attended:
Access Advanced course
Access VBA course

by - delegate Julie [10 posts] (2007 Nov 26 Mon, 14:48) replyReply

I use the following code to make my database send users and email when they enter a record. However, the emails come out as one block of unformatted text. I have tried using HTML code eg <P> and <B> but this doesnt work, it just puts those symbols into the email.

Strto is used to get the begining of the email address.

Any advice would be appreciated!

DoCmd.SendObject , , , strto & "@hotmail.com", , , "Your Metrology Request: Job Number " & Me![job number:] & " has been received.", "Your request will be completed as soon as possible and you will be notified by email when it is completed. Please quote the job number in all correspondance with the Metrology Department. N:B: PLEASE DON'T FORGET TO TAKE THE PART TO BE MEASURED TO THE METROLOGY OFFICE! REQUESTS WITHOUT PARTS WILL BE DELETED.", False

Access Advanced 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003/XP 2008 Aug 29 Fri Bayswater 0 FULL    
2003/XP 2008 Sep 3 Wed Southwark 3 book now £224 £235
2007 2008 Sep 24 Wed Bloomsbury 0 FULL    
2003/XP 2008 Oct 8 Wed Southwark 5 book now £219 £235
2003/XP 2008 Oct 24 Fri Bloomsbury 7 book now £190 £224
2003/XP 2008 Oct 29 Wed Bayswater 8 book now £110 £224
Full Schedule: See all 55 Access Advanced course dates.
Bookings currently available until 25th November 2009.

RE: Format emails

by - trainer Stephen gold contributer[326 posts] (2007 Dec 13 Thu, 17:17) replyReply

Hi Julie

Thankyou for your question

Could you clarify the following please.

Is the text of your message held in a table within the database, or is it created fresh each time the code runs. If the former, could you advise what the format of the data is; ie text or memo?

Regards

Stephen

RE: Format emails

by - delegate Julie [10 posts] (2008 Feb 28 Thu, 11:10) replyReply

The text is held in the code that opens the email as its usually the same every time. The only difference is a unique reference number which is picked up from the current record (again in the code).

The code looks like this:

DoCmd.SendObject , , , strto & "@companyname.com", , , "Your Metrology Request: Job Number " & Me![Job number:] & " has been received.", "Your request will be completed as soon as possible and you will be notified by email when it is completed. Please quote the job number in all correspondance with the Metrology Department.", False


Related articles

· Microsoft Access Mistakes to Avoid
· Quick Access Database Courses: A 10 Step Lesson in Encrypting and Decrypting an Access Database
· 3 Useful Things You'll Learn in Microsoft Access Training Courses
· Quick Access Course: Creating a Customer Contact Database in 8 Simple Steps
· The Benefits of Certified Microsoft Training in Access

Access tip:

Deleting duplicate records from a table

You cannot delete records tables where there duplicate records. A way around this is to create a new table which wont hold the duplicates. and then deleting the old table.

1. Use a make-table query based on this table only. IMPORTANT - Ensure that you include all of the fields from your original table or you may loose data.

2. Open the query's property sheet by using VIEW, QUERY, PROPERTIES, and set the Unique Values property to Yes

3. Because you have selected the Unique Values to Yes when you run the query, Access creates a new table without duplicate records. You can now delete the old table and rename the new one.

View all Access hints and tips

Institute of IT Training - Accredited Training Provider Institute of IT Training - Accredited Training Provider Prodigy Platinum Learning Partner Microsoft Office Specialist Authorised Testing Centre

Microsoft Registered Partner
microsoft office
ms office project server

Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz