Hyperlink on Form

  • Thread starter Thread starter Nick Jax
  • Start date Start date
N

Nick Jax

Hello,

I'm running Access 2003. I have a form which contains a Request Number
field. I want to insert an e-mail hyperlink and include a default subject.
Looks something like this:


mailto:[email protected]?subject=Request#

What I'd like to do is have the value from the Request Number Field included
in the subject line. Is there a way to reference the value inside of the
Request Number field so it appears on the subject line of the e-mail
hyperlink?

Thank you!
 
Have you tried to concatenate the field value with the mail string?

stringHyp = "mailto:[email protected]?subject=Request " & Me.ReqNo
Application.FollowHyperlink stringHyp
 
What happened exactly? When I create a button with that code and click it, a
new mail message opens with the recipient and subject properly filled out.

Nick said:
That didn't work...thanks though..
Have you tried to concatenate the field value with the mail string?
[quoted text clipped - 15 lines]
 
I think I'm putting the code you gave me in the wrong place!

This is what I did:
1 - Clicked INSERT
2 - Clicked HYPERLINK
3 - Selected e-mail address and in the subject line I put the code you gave
me.

I'm sure that's wrong. (obviously since it's not working).

Thanks again.

kingston via AccessMonster.com said:
What happened exactly? When I create a button with that code and click it, a
new mail message opens with the recipient and subject properly filled out.

Nick said:
That didn't work...thanks though..
Have you tried to concatenate the field value with the mail string?
[quoted text clipped - 15 lines]
Thank you!
 
The code should be inserted as part of an event procedure. Open the form in
design mode and select the control (e.g. textbox) that you want to activate
the hyperlink. Go to the control's properties window and Event tab. Go to
the OnClick event or whatever is appropriate and choose [Event Procedure].
Click the button at the end of the line with ... In the VB window, enter the
code I provided (replace Me.ReqNo with the correct control on your form).
When you open the form normally and click on the control (or perform whatever
event you deemed appropriate), the hyperlink should activate.

Nick said:
I think I'm putting the code you gave me in the wrong place!

This is what I did:
1 - Clicked INSERT
2 - Clicked HYPERLINK
3 - Selected e-mail address and in the subject line I put the code you gave
me.

I'm sure that's wrong. (obviously since it's not working).

Thanks again.
What happened exactly? When I create a button with that code and click it, a
new mail message opens with the recipient and subject properly filled out.
[quoted text clipped - 6 lines]
 
Worked PERFECT! Thanks very much!!!


kingston via AccessMonster.com said:
The code should be inserted as part of an event procedure. Open the form in
design mode and select the control (e.g. textbox) that you want to activate
the hyperlink. Go to the control's properties window and Event tab. Go to
the OnClick event or whatever is appropriate and choose [Event Procedure].
Click the button at the end of the line with ... In the VB window, enter the
code I provided (replace Me.ReqNo with the correct control on your form).
When you open the form normally and click on the control (or perform whatever
event you deemed appropriate), the hyperlink should activate.

Nick said:
I think I'm putting the code you gave me in the wrong place!

This is what I did:
1 - Clicked INSERT
2 - Clicked HYPERLINK
3 - Selected e-mail address and in the subject line I put the code you gave
me.

I'm sure that's wrong. (obviously since it's not working).

Thanks again.
What happened exactly? When I create a button with that code and click it, a
new mail message opens with the recipient and subject properly filled
out.
[quoted text clipped - 6 lines]
Thank you!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top