By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,155 Members | 2,518 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,155 IT Pros & Developers. It's quick & easy.

Sending an email from a form.

P: 27
Hi folks;
I have a pretty simple problem which is proving tricky to solve... I have a form that displays various contact information about an individual, and one of these items of information is an email address. Below this I've added a button labelled "Email Me!" You'll never guess what it's for...

As the more cunning amongst you may have guessed, I want it to open a user's default mail client with the email address from the box above the button already filled in. In essence I want the button to do:

mailto:forms!frmContactDetails!EmailAddress

I've tried a couple of different methods. SendObject is looking the most promising but I can't get Access to stop taking forms!frm... literally and sending an email to it. I also tried using the button to run

iexplore.exe + " " + forms!frm......

and that kind of works but it's pretty clunky. Is there an easier way to make a button run mailto:[...] commands?

Thanks!
Aug 8 '07 #1
Share this Question
Share on Google+
1 Reply


Rabbit
Expert Mod 10K+
P: 12,383
Expand|Select|Wrap|Line Numbers
  1. FollowHyperlink "mailto:" & Forms!frmContactDetails!EmailAddress
  2.  
Aug 20 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.