R
Rob Parker
Hi All,
I've puzzled over whether I can accomplish what I want using just a query
(or a set of queries), and came to the conclusion that I couldn't - but that
doesn't mean it can't be done.
I'm trying to map a set of fortnightly salary data into months in a
financial year. I have the following tables and fields:
tblStaffEffort
FY - integer
Period - integer (number from 1 to 27 - only gets to 27 about one year
in 11)
Hours - double
Cost - currency
...
tblMDS (monthly datasets)
FY - integer
Mnth - integer (1-12, for Jan to Dec)
Yr - integer (since our FY runs July to June)
MaxPeriod - integer (the maximum period number for the year/month)
...
I've actually solved my problem by writing code to loop through two
recordsets based on each of these tables, and write the data into a
temporary table which I can base my queries/reports on. But I'm curious as
to whether it's possible to do this with a query/sub-query(s). Any takers?
TIA,
Rob
I've puzzled over whether I can accomplish what I want using just a query
(or a set of queries), and came to the conclusion that I couldn't - but that
doesn't mean it can't be done.
I'm trying to map a set of fortnightly salary data into months in a
financial year. I have the following tables and fields:
tblStaffEffort
FY - integer
Period - integer (number from 1 to 27 - only gets to 27 about one year
in 11)
Hours - double
Cost - currency
...
tblMDS (monthly datasets)
FY - integer
Mnth - integer (1-12, for Jan to Dec)
Yr - integer (since our FY runs July to June)
MaxPeriod - integer (the maximum period number for the year/month)
...
I've actually solved my problem by writing code to loop through two
recordsets based on each of these tables, and write the data into a
temporary table which I can base my queries/reports on. But I'm curious as
to whether it's possible to do this with a query/sub-query(s). Any takers?
TIA,
Rob