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!

Try to change recived format to another display format

Status
Not open for further replies.

davefm1

Programmer
Apr 18, 2001
78
US
Hi,

my data is coming back in a procedure and is the following format however the o1Jan)02 is a char 9 and not a date field. data comes back as jan,feb mar in order already.

Looking for simulor to the tab report
whats there now

01Apr02 jjjj xxxx nnnn aaaa zzzzz
01Aug02 jjjj xxxx nnnn aaaa zzzzz
01Dec02 jjjj xxxx nnnn aaaa zzzzz

what I'm looking for is to group by year 02

01Jan02 01Feb02 01Mar02
lables jjjj jjjj jjjj
nnnn nnnn nnnn
aaaa aaaa aaaa
zzzzz zzzzz zzzzz

any ideas help

thanks dave
 
I think that I addressed this in another post:

You have a few options here:

val(right(01 Jan 02,2))+2000 will return 2002, which is suitable for years beyond 1999, but I would suggest that you convert the text to a formula containing a date:


// @MyDate
cdate({MyTable.MyDateField})

Fortunately the cdate function appears to handle this format. If you experience problems, convert it into a format which can be used first (check help for cdate).

Now use this formula to group by (you can set groups on dates to be by the year using the The Section Will Be Printed set to for each year in the grouping dialog).

-k kai@informeddatadecisions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top