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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hyperlink with VB

Status
Not open for further replies.

fludan

Technical User
Feb 1, 2002
41
US
He!

I am sending a e-mail with sendobject and in the message I would like to add a hyperlink. Right now I am using this code, wen I send this e-mail the recipient received the e-mail and the link is broken.

Public Function EmailWOTemplate6()

Dim dbs As Database, EmailSet As Recordset, RecCnt, OrdID

Dim EmailMsgSet As Recordset
DoCmd.SetWarnings 0

'Append OrdRev Set to a temp table

Set dbs = CurrentDb
Set EmailSet = dbs.OpenRecordset("UPS")

'Open the Email Msg Table to insert the Email Message
Set EmailMsgSet = dbs.OpenRecordset("msgtable")

RecCnt = EmailSet.RecordCount
If RecCnt = 0 Then Exit Function

'Loop Through and Email reports
EmailSet.MoveFirst
Do Until EmailSet.EOF

'Send Email via MS_Exchange
DoCmd.SendObject , , , "" & EmailSet![CE-Mail] & "", , , "Shipping confirmation. Tracking No:" & " " & EmailSet![Tracking No], Chr$(13) & Chr$(10) & "Dear" & " " & EmailSet![CFerstName] & " " & EmailSet![CLastName] & Chr$(13) & Chr$(10) & Chr$(13) & Chr$(10) & "Your order was shiped on the" & " " & EmailSet![Ship Date] & "." & Chr$(13) & Chr$(10) & Chr$(13) & Chr$(10) & "You can track you packaged by clicking on the link below" & Chr$(13) & Chr$(10) & " & EmailSet![Tracking No] & EmailMsgSet![msg1], False

EmailSet.MoveNext
Loop

End Function


Can sumone help me please am stock.

Thank Frank
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top