Solved

Format Date in Text box String

Posted on 2014-01-20
2
538 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
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now