I have working code to generate e-mails and display query results in the body of an email message. However, I'd like those results to contain unique hyperlinks.
For example:
PortfolioName
port1
port2
port3
port4
Ideally, I'd like to have each of those names be embeded with a hyperlink (e.g. "mylink" & port1). if this is not possible, then I'm fine displaying the full html path, but I'd like that path to by hyperlinked.
as of now, the results get displayed in a table format as I am using this code:
DoCmd.OutputTo acOutputQuery, "qry_portfolios", acFormatHTML, "QueryResults.html"
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.OpenTextFile("QueryResults.html", ForReading)
RTFBody = f.ReadAll
f.Close
I then source the RTFBody within the message body.
so my question is how can I get the results to be embeded with a hyperlink?
thanks!
For example:
PortfolioName
port1
port2
port3
port4
Ideally, I'd like to have each of those names be embeded with a hyperlink (e.g. "mylink" & port1). if this is not possible, then I'm fine displaying the full html path, but I'd like that path to by hyperlinked.
as of now, the results get displayed in a table format as I am using this code:
DoCmd.OutputTo acOutputQuery, "qry_portfolios", acFormatHTML, "QueryResults.html"
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.OpenTextFile("QueryResults.html", ForReading)
RTFBody = f.ReadAll
f.Close
I then source the RTFBody within the message body.
so my question is how can I get the results to be embeded with a hyperlink?
thanks!