Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Format Date in Text box String

Posted on 2014-01-20
2
Medium Priority
?
592 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 1000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
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 …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

604 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