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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

formatting 1

Status
Not open for further replies.

Newbi1

Programmer
Apr 4, 2005
64
0
0
US
I have several fields I am trying to format in formulas. The problem is when i convert them to text, the formatting keeps changing from what I want.

Cstr(int(year(currentdate)))+ "AYP Status"

How do i remove the columns and decimals within the formula? I have tried changing the global settings, but the when it is run on another persons version of crystal, it is goofed up again.
 
You can control data format using commands like Totext({your.date}, "dd MMM yyyy") etc.

It helps to give your Crystal version, since newer versions have extra options, and some extra problems.

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
This will do the trick.
Cstr(int(year(currentdate)),0,"")+ "AYP Status"

Mike
 
thanks Mike.

Sorry madawc. Seems like every day i am on a different version of CR. I will specify in the future
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top