I'm using CR 8.5 against ABRA payroll Foxpro tables. The connection is a proprietary ADA (Abra Data Access) connection that will not allow SQL queries. (Otherwise I would try a union query.)
I have two tables.
People has three fields
people.id
people.EffectiveDate
people.Salary
History has three fields:
History.id
History.EffectiveDate
History.Salary
An employee's entire history is in "history" except for the last salary amount and effective date. I'm trying to pull a list for a date range that includes everything from both tables if the dates fall within the range. I'm trying to construct two formulas that will pull in the salary and effective date out of people into the bottom of the list from History.
I have one work-around that almost works but not quite. Here it is but don't let it prejudice you:
group on People.PersonNumber, and put People.salary in the group footer. This makes it LOOK like it's part of the list but I can't get the date range selection criteria right to apply to both dates so that only the records in people and history that are within the date range are selected.
Any suggestions will be very much appreciated.
The world is full of good people.
I have two tables.
People has three fields
people.id
people.EffectiveDate
people.Salary
History has three fields:
History.id
History.EffectiveDate
History.Salary
An employee's entire history is in "history" except for the last salary amount and effective date. I'm trying to pull a list for a date range that includes everything from both tables if the dates fall within the range. I'm trying to construct two formulas that will pull in the salary and effective date out of people into the bottom of the list from History.
I have one work-around that almost works but not quite. Here it is but don't let it prejudice you:
group on People.PersonNumber, and put People.salary in the group footer. This makes it LOOK like it's part of the list but I can't get the date range selection criteria right to apply to both dates so that only the records in people and history that are within the date range are selected.
Any suggestions will be very much appreciated.
The world is full of good people.