Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can you get the "month name" ?? 1

Status
Not open for further replies.

alistairpaul

Programmer
Apr 11, 2001
100
US
I tried a couple different ways of doing "if month(table.datefield) = 1 then monthnamevar = "Jan", but I was unsuccessful.

Does anyone have a good way to do this?

Thanks!
 
if month(table.datefield) = 1 then "Jan" else
if month(table.datefield) = 2 then "Feb" else
if month(table.datefield) = 3 then "Mar" else ... Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
Or you can simply format the datefield to print just the month, either as "January", "Jan", "01", or "1". This works only for displaying the month portion, not as formula field for grouping by month. Malcolm Wynden
I'm for sale at malcolm@wynden.net
 
I assume you aren't using V8 which has a MonthName function. Ken Hamady
Crystal Reports Training/Consulting and a
Quick Reference Guide to VB/Crystal (including ADO)
 
I got it - i used your Working Days formula as an example, Ken. it's working fine now.

thanks, all, for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top