sendobject macro

P

Pants00

I am trying to create a macro that e-mails information from a form to a
specified recipient included on the form. The macro currently attaches the
form to the e-mail but I can not figure out how to populate the "To" line
with the recipient listed on the form.
 
P

Pants00

Thanks for your help, I'm now one step closer...

How about attaching two fields from the same form in the Subject Line?
=[Forms]![NameOfForm]![Name] and =[Forms]![NameOfForm]![Id number]

I have tried the above syntax 20 different ways...


Steve Schapel said:
Pants,

=[Forms]![NameOfForm]![EmailAddress]

--
Steve Schapel, Microsoft Access MVP

I am trying to create a macro that e-mails information from a form to a
specified recipient included on the form. The macro currently attaches the
form to the e-mail but I can not figure out how to populate the "To" line
with the recipient listed on the form.
 
S

Steve Schapel

Pants,

Was this one of the 20 ways?...
=[Forms]![NameOfForm]![Name] & [Forms]![NameOfForm]![Id number]
 

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

Top