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!

Line Chart for Start Date and End Date CR8.5

Status
Not open for further replies.

vimblick

Programmer
Sep 22, 2003
1
ZA
Hi
I am trying to create a line chart showing Months between Start Date and End Date for a project and using todays date as the data.Therefore showing how far the project has progressed.
Hope someone can help.
Thanks
 
Try something like
Code:
DateDiff("d", StartDate, EndDate)
Get the printed report looking OK, before attemting to insert a chart.

In your selection statement (Report > Selection Formula > Records), you'd probably want to say not isnull(EndDate), to exclude projects that have not yet ended.

I am assuming the two dates are in the same record. If not it is more complex, probably involving grouping for project code.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
You might want to try a formula like:

if isnull({table.enddate}) then
datediff("d",{table.startdate},currentdate) else
datediff("d",{table.startdate},{table.enddate})

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top