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

Emailing from Access 2002/Win XP/Outlook Express. 1

Status
Not open for further replies.

BrianOg

Programmer
Feb 10, 2004
12
GB
I have a field in a table (type Hyperlink) in which I store email addresses.
If I click on the textbox with this field as a source, I get an error:

“unable to open If I define an OnClick handler and put a breakpoint in it, the contents of the text box is:
johnsmith@yahoo.com//http:johnsmith@yahoo.com

I have tried copying the email address from the hyperlink field into a text field with a corresponding textbox txtEmailStr and defining an OnClick event :

Dim strEmail As String
strEmail = "MailTo:" & CStr(Nz(Me.txtEmailStr))
Application.FollowHyperlink strEmail

The Outlook Express window then opens ok, though the form in the background flashes. When I close the OE window, I get an error:

Unable to open
Can anyone suggest how I can simply have a textbox with an email address in it, click on it and open Outlook Express with the email address in the To box and my address in the From box?
 
Have a look at the Application.HyperlinkPart method.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top