Modifying date information

J

JMLU

I have a date field [Contract End Date] that has the date entered in mm/dd/yy
format. I would like to run a query that shows the 1/1/09 thru 3/31/09 data
as "Q109" and so on through the year. What is the best way to set this query
up?
 
J

John W. Vinson

I have a date field [Contract End Date] that has the date entered in mm/dd/yy
format. I would like to run a query that shows the 1/1/09 thru 3/31/09 data
as "Q109" and so on through the year. What is the best way to set this query
up?

Just include the date field in the query, and set its Format property to

"\Qqyy"

or use that format string as the Format property of a form or report textbox.

The \Q means to include a literal letter q in the string; the q format value
returns the quarter; and the yy the last two digits of the year. This doesn't
affect the stored date, just how it's displayed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Dlookup 7
Populate a table 2
Date Calculation 2
Conditional Sum in a Form 7
Converting Date to Julian 4
Enter Date Format 9
Format Function - Access 2000 2
Date formatting problem on some PCs 2

Top