date format

S

sherwin

ni'd like to covert the day like 1 to first, 2 to second, and so on, how do i
do that? any code?
 
J

John W. Vinson

ni'd like to covert the day like 1 to first, 2 to second, and so on, how do i
do that? any code?

In addition to the suggestion of VBA code, you could just create a little 31
row table with values
1 First
2 Second
3 Third
....
31 Thirty-first

Use this table in your report with no join line, just use a criterion on the
number field of

=Day([datefield])

or else use =DLookUp("DayName", "ThisLittleTable", "DayNumber = " &
Day([datefield])) in an expression.
 

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

Top