How do you pass on a field entry in an email message?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all,

I've created a form in which I have a button which sends an email out to a
user. In that email, I'd like to reference the form number of that particular
form. I tried the following for my message column:

strMsgBody = "Issue no.[table1]![Database Reference No] A Technical Issue
pertaining to ......

Where table 1 is my table and Database Reference No is a unique identifier.

Many thanks in advance.

Adam
P.S. Am going home now so will check this forum again tomorrow
 
Hi,
if you have this reference number on a from - then you can use it instead:

strMsgBody = "Issue no." & forms![MyForm]![Database Reference No] & " A
Technical Issue ...

As for table - then you can use DLookup() function to get a desired field
value from a table

--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com
 
Brillian Alex,

Many many thanks.

Adam

Alex Dybenko said:
Hi,
if you have this reference number on a from - then you can use it instead:

strMsgBody = "Issue no." & forms![MyForm]![Database Reference No] & " A
Technical Issue ...

As for table - then you can use DLookup() function to get a desired field
value from a table

--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com



Adam said:
Hello all,

I've created a form in which I have a button which sends an email out to a
user. In that email, I'd like to reference the form number of that
particular
form. I tried the following for my message column:

strMsgBody = "Issue no.[table1]![Database Reference No] A Technical Issue
pertaining to ......

Where table 1 is my table and Database Reference No is a unique
identifier.

Many thanks in advance.

Adam
P.S. Am going home now so will check this forum again tomorrow
 

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