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

Formula for displaying monthly data 1

Status
Not open for further replies.

tsjd

Technical User
Apr 20, 2006
15
MY
I need a formula (using two parameters, month and year) which would display the records of a certain month without using any date formula as the fiscal year of the company is different compared to a calendar date.

Basically the fiscal period (month) within the pervasive sql data is of a number type while the year is of a string type. Can anyone help? I'm using Seagate Crystal Reports version 8.5
 
You can use DatePart;
Code:
DatePart("yyyy", {your.date})
The same with "m" for month. Crystal 10 also has specific Month and Year commands, but I'm not sure if that applied for 8.5

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
You would use a record selection formula like:

{table.period} = {?month} and
{table.year} = {?year}

...where {?month} is a number parameter and {?year} is a string parameter.

-LB
 
thanks got it already :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top