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!

Printing report for certain time

Status
Not open for further replies.

roope099

Technical User
Dec 22, 2010
5
FI
Hi,

i have one report, and now i should make something to that, so user can print it monthly, i mean that she can select the time period which she wants to print. e.g. stock movements during 1.12-31.12 ..

Please help me.

Tiina
 
Crystal lets you get the month and year for a given date, e.g. as
Code:
Year({your.date})
Code:
Month({your.date})
You could then let them be selected using parameters. These can have an 'all' default, e.g.
Code:
@ParamYear = "All" or
@ParamYear = @Year
And the same for month

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 11.5 with SQL and Windows XP [yinyang]
 
Thank u for your answer, im really new in this, so can u tell me where i should put these?

And after this, user can select that she wants to print only report for 1.11.-31.11 ? And ofcourse report brings only numbers from that month?


 
You might want to just create two date parameters {?Start Date} and {?End Date} in the field explorer->parameter->new and then use them in your record selection formula:

{table.date} in {?Start Date} to {?End Date}

This assumes that your date field is a date datatype, and not a string.

-LB
 
I tried this one, insert dates 19.12 and 23.12 ... but it will bring also actions from beginning of month, not only between these days ....

Thank you !
 
{StockEve1.EveDate} in {?Start Date} to {?End Date}
something like this i have .....
 
Where are you entering the selection formula? Should be in report->selection formula->record. Also, when you enter this, what exactly are you entering at the prompt? You seem to be using a dd/mm/yyyy format.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top