On 1 Sep 2006 10:47:44 -0700, "Rob" <(E-Mail Removed)> wrote:
>I actually tried that sucessfully but chose to type the code in VB
>because I need to have calculated fields within the body. I actually
>have it working in VB now I just need to know how to replace some of
>the standard text with calculated fields within VB. I have the field
>named in the query but Im not sure how to reference that field in VB.
>The users (ideally) will not have to type anything for the body. They
>will just select the office, recipient, and subject. The rest will be
>filled in automatically.
I'd suggest using string variable; extract the boilerplate text from
the form control or from a Recordset, and use the Replace() function
to replace "placeholders". I have no clue what these memos or
calculations look like so I can't give precise examples, but if (say)
you have a boilerplate text with
....The interest rate for this loan will be <IntRate>, for a monthly
payment of $<Payment>...
you could use statements like
strMemoText = Replace(strMemoText, <IntRate>, Format(curRate,
Percent))
and so on.
John W. Vinson[MVP]
|