Using MS Access/MS Access

Advertisement


Graham wrote at 2013-08-10 04:43:01
Here is some code I used, maybe not the smartest but works

Data is built from dropdowns and pulling the to's from a table



' --------------------------------------------------

' Create E-Mail to duty officer

' --------------------------------------------------

' ------------------------------------

' Build Distribution List

' ------------------------------------



zz = "mailto:" & SendMailTo



' ------------------------------------

' Build Subject

' ------------------------------------



zzz = "?subject=Incident - " & Combo66 & " - " & Text18 & " " & Text100 & " - (" & Combo48 & ")"



' ------------------------------------

' Build Body

' ------------------------------------



zzzz = ("&body=Incident logged at: - " & Text76 & _

"%0d%0a" & "Logged By: - " & Text106 & _

"%0d%0a" & _

"%0d%0a" & "Incident Number: - " & Combo66 & _

"%0d%0a" & "Date And Time Of Incident: - " & Text52 & " " & Text29 & _

"%0d%0a" & "Who Was Involved: - " & Text18 & " " & Text100 & _

"%0d%0a" & "Type Of Accident: - " & Combo48 & _

"%0d%0a" & "Location Where Incident Occurred: - " & Text15 & _

"%0d%0a" & "Activity Being Undertaken: - " & Combo56 & _

"%0d%0a" & "Team Leader: - " & Combo45 & _

"%0d%0a" & "Vehicle Call Sign: - " & Combo69 & _

"%0d%0a" & "SDA - Base: - " & Combo40 & _

"%0d%0a" & "Medical Treatment: - " & Combo59 & _

"%0d%0a" & "Log: - " & _

"%0d%0a" & Text24 & _

"%0d%0a" & _

"%0d%0a" & "N/B" & _

"%0d%0a" & "Further details will be provided when they become available.")



Application.FollowHyperlink zz & zzz & zzzz


Using MS Access

All Answers


Answers by Expert:


Ask Experts

Volunteer


Scottgem

Expertise

I can answer almost all types of questions relating to Microsoft Access usage and application design. My strengths are database and interface design.

Experience

I've been designing databases for over 25 years working with dBase, FoxPro, Approach and Access.

Organizations
Author of Microsoft Office Access 2007 VBA
Techncial Editor for Special Edition Using Microsoft Access 2007 and Access 2007 Forms, Reports & Queries From Que Publishing

Education/Credentials
Brooklyn College BA

©2016 About.com. All rights reserved.