Solved

Format Date in Text box String

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

773 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