J
jimt
I'm using Access-2000 and creating query/queries to pull together financial
data (budget & actual) to produce the following in a subform as well as a
report.
parm (form input): fiscal_year & fiscal_month
budget actual YTD Budget Balance
Account Month Expend Budget Actual Annual Budget Actual
Tables (just utilized fields):
chart_of_accounts
account_num
title
select_for_report
budget
account_num
fiscal_year
budget_x (x=1-12 fields, 1 for each month)
annual (total forecasted annual budget)
actual
account_num
fiscal_year
actual_x (x=1-12 fields, 1 for each month)
I'm using the chart_of_accounts table as a "master" however even using an
outer join will not work since some of the accounts has not had an actual for
the year. Similarly if an expenditure (actual) has occurred and the budget
for some reason is not entered the record will not be included.
I've tried a union on account_num across the three tables and then a query
over the union to get the $$$ fields; however, #error occurs in the field
where the actual or budget records do not exist (even with outer joins).
I can not create two queries that first outer joins chart_of_accounts with
budget and actual since I have to select only the records for the tax year
enterd on the form (tax year field is in the "right"/"outer" table)
I know I can use a program to populate a separate "combined" table and then
use a simple query over it to get the results; but, is there a way to use
queries instead?
Thanks
Jim T.
data (budget & actual) to produce the following in a subform as well as a
report.
parm (form input): fiscal_year & fiscal_month
budget actual YTD Budget Balance
Account Month Expend Budget Actual Annual Budget Actual
Tables (just utilized fields):
chart_of_accounts
account_num
title
select_for_report
budget
account_num
fiscal_year
budget_x (x=1-12 fields, 1 for each month)
annual (total forecasted annual budget)
actual
account_num
fiscal_year
actual_x (x=1-12 fields, 1 for each month)
I'm using the chart_of_accounts table as a "master" however even using an
outer join will not work since some of the accounts has not had an actual for
the year. Similarly if an expenditure (actual) has occurred and the budget
for some reason is not entered the record will not be included.
I've tried a union on account_num across the three tables and then a query
over the union to get the $$$ fields; however, #error occurs in the field
where the actual or budget records do not exist (even with outer joins).
I can not create two queries that first outer joins chart_of_accounts with
budget and actual since I have to select only the records for the tax year
enterd on the form (tax year field is in the "right"/"outer" table)
I know I can use a program to populate a separate "combined" table and then
use a simple query over it to get the results; but, is there a way to use
queries instead?
Thanks
Jim T.