Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / November 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adam - 15 Nov 2006 17:27 GMT
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
Alex Dybenko - 16 Nov 2006 08:36 GMT
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

Signature

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

> Hello all,
>
[quoted text clipped - 13 lines]
> Adam
> P.S. Am going home now so will check this forum again tomorrow
Adam - 16 Nov 2006 09:47 GMT
Brillian Alex,

Many many thanks.

Adam

> Hi,
> if you have this reference number on a from - then you can use it instead:
[quoted text clipped - 22 lines]
> > Adam
> > P.S. Am going home now so will check this forum again tomorrow
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.