Solved

Format Date in Text box String

Posted on 2014-01-20
2
565 Views
Last Modified: 2014-01-20
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.
0
Comment
Question by:mlcktmguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
IrogSinta earned 250 total points
ID: 39796086
Try this:
="Your appointment is on " & Format([AppointmentDate], "mmmm d, yyyy")

Open in new window

0
 
LVL 1

Author Closing Comment

by:mlcktmguy
ID: 39796101
Thanks you
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question