modglin
Programmer
- Apr 10, 2001
- 105
I have a report that is using a table that contains classes taken by the employees and then a subreport in that report that uses a table that has certification that the employees have.
On the subreport - I have the expiration date of the employee certifications. On the detail line I have a formula
On the main report I created a formula in the group footer 3(emp name)
I also have a formula in the detail line of the main report
The reports are linked by Emp Number.
When I run the report the first line of detail does not show an expiration date. The next few lines are fine. When the next employee starts - it contains the date from the previous employee on the top line and then the remaining lines have the correct expiration date for the employee.
Do I have the formulas in the correct sections?
example of how it is showing on the report
Employee Cert Exp Date Class
Tom (blank) Company Goals
Tom 7/5/2009 People Skills 101
Tom 7/5/2009 People Skills 201
Tom 7/5/2009 Hiring & Interviewing
Larry 7/5/2009 Company Goals
Larry 8/15/2008 People Skills 101
Larry 8/15/2008 Hiring & Interviewing
Jane 8/15/2008 Company Goals
Jane 2/1/2009 People Skills 101
Jane 2/1/2009 People Skills 201
etc.
On the subreport - I have the expiration date of the employee certifications. On the detail line I have a formula
Code:
\\@sharedExpDate
Whileprintingrecords;
Shared datevar SharedExp:= {empcert.expdate};
Code:
\\@sharedExpirationDate
Whileprintingrecords;
Shared datevar SharedExp
Code:
\\@Expired Date
Evaluationafter({@sharedExpiredDate})
datevar Expired:= {@sharedExpireDate};
The reports are linked by Emp Number.
When I run the report the first line of detail does not show an expiration date. The next few lines are fine. When the next employee starts - it contains the date from the previous employee on the top line and then the remaining lines have the correct expiration date for the employee.
Do I have the formulas in the correct sections?
example of how it is showing on the report
Employee Cert Exp Date Class
Tom (blank) Company Goals
Tom 7/5/2009 People Skills 101
Tom 7/5/2009 People Skills 201
Tom 7/5/2009 Hiring & Interviewing
Larry 7/5/2009 Company Goals
Larry 8/15/2008 People Skills 101
Larry 8/15/2008 Hiring & Interviewing
Jane 8/15/2008 Company Goals
Jane 2/1/2009 People Skills 101
Jane 2/1/2009 People Skills 201
etc.