Steve - Thank you, that worked! One question: Is there way to automatically
insert a "carriage return" (blank line) between the Comments text and the
Description text in the generated e-mail? Thanks again. - Bob
"Steve Schapel" wrote:
> Rgille,
>
> Without looking at the actual template you are using for your example, I
> guess it is likely to be like this...
>
> =IIf([Form].[Description].[TextFormat]=1,PlainText([Comments] & Chr(13) &
> Chr(10) & [Description]),[Comments] & Chr(13) & Chr(10) & [Description])
>
> --
> Steve Schapel, Microsoft Access MVP
>
>
> "rgille" <(E-Mail Removed)> wrote in message
> news:25483594-49F8-4A96-8A27-(E-Mail Removed)...
> > I am trying to learn about Access 2007 macros. I downloaded the Call
> > Tracker
> > template from Microsoft.com. The Call Details form in this template has
> > an
> > E-mail button which, when clicked, dumps the contents of the form’s
> > Description field into the body of the e-mail. The E-mail button runs an
> > embedded macro On Click. Looking at the properties of the embedded macro’s
> > SendObject action, the Message Text action argument looks like this:
> > =IIf([Form].[Description].[TextFormat]=1,PlainText([Description]),[Description])
> > I want to include the form’s Comments field in the Message Text too, so
> > that the email message will include the Comments field contents followed
> > by
> > the Description field contents (if possible I would like these on separate
> > lines). Can anyone point me in the right direction to do this? Thank
> > you.
>
>
|