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

Email and the internet.

Status
Not open for further replies.

rosiebob

Technical User
Oct 8, 2002
6
US
We would like to send an email or go to a web site by clicking on a data field displayed as a record on a form.

Can only get so far after changing field to hyperlink. Would welcome some guidance.

Thanks, Bob
 
Your email field should be a text field and you could use this.

On Error GoTo Fejl
If Not IsBlank(ItnMail) Then


DoCmd.SendObject , , , ItnMail
End If
Fejl:
If Err = 2501 Then Resume Next

IF your field is now a hyperlink you can use this in your code before docmd.
If InStr(1, ItnMail, "#") Then ItnMail = Left(ItnMail, InStr(1, ItnMail, "#") - 1)
Mail.Requery

Rgds Herman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top