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!

Message Box to Control Destination of an E-mail

Status
Not open for further replies.

mike1975

IS-IT--Management
Jun 26, 2001
38
GB
I have a report that is based on a query that I need to be mailed to different individuals based on criteria held with in the query.

Is there any code that will enable me to send the e-mail basing the code around an if statement?

Mike
 
you bet !!!!

If somevalue = something then
docmd.sendobject "First person in e-mail", ....
ElseIF somevalue = SomethingElse
docmd.sendobject "Second person in e-mail", ....

Elseif as many time as you want
....
...

End if
DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top