Link to home
Start Free TrialLog in
Avatar of mlcktmguy
mlcktmguyFlag for United States of America

asked on

Format Date in Text box String

A client of mine letters that they want to send out for the application we've built for them.

So far we've done it by using unbound text boxes.  Each box has a lot of client language that we cut and paste from word documents.  They want some dates and numeric fields imbedded in the language and it has to flow like a paragraph.

For example:  
Your appointment in on [AppointmentDate].  Please make certain to bring a deposit of [DepositAmt] or you will not be permitted to enter.

There are many paragraphs with many date DB fields.

All of the DB fields needed are in a query that is the recordsource of the report/letter.

In different paragraphs they may want the date formatted as Short Date (10/01/14) or as Month day and year (January 1, 2007).

How could I create the source of a text box with the date imbedded in the format January 1, 2007.

I tried setting the source of the text box as:
="Your appointment in on " & [AppointmentDate] & ".  Please make certain to bring a deposit of " & Format([DepositAmt], "Standard") & " or you will not be permitted to enter.

I keep getting formatting errors, or it will accept what I enter but not print either the date of amount.

What is the appropriate way of doing this?


We've done this before by setting up  text boxes on a report and and concatenating everything together.  For some reason this one's fighting me.

The one that's fighting particularly hard is getting to to read

Your appointment is on January 1, 2007.
ASKER CERTIFIED SOLUTION
Avatar of IrogSinta
IrogSinta
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mlcktmguy

ASKER

Thanks you