I have a simple report comparing actuals to budget and calculating the variance between the two. The budget is in an Access database which I could not get to link to the main database (Lawson Software). I kept getting an error: Invalid File Link-Not all fields in same index expression. This occurred when I tried to create a second link between the tables.
So I created a subreport containing the budget data. But I could not create the variance formula in the main report because the subreport hadn't run yet so there was no budget to compare to.
So I passed the actuals down to the subreport and had it calculate the variance. So on the main report, the account number and actuals are from Lawson and the budget and variance are from the subreport.
The problem occurs when there is a record for an actual amount for an account but there was no budget for that account. When the main report sends the parameters to the subreport, it returns no records and blank spaces appear in the main report. Since no records were retrieved, no report was created and the variance was not calculated. Even though there were no records in the subreport, I still need the variance to calculate.
I'm guessing the solution lies in where the subreport is placed on the main report. It is currently in GF2a, the account group. The manual running totals are in GF2b and are suppressed so they don't show.
Or else I need to find a way to calculate the variance in the main report (see my second paragraph).
Any help is appreciated. Is there a way to link my Access database to Lawson? Or is there a way to calculate the variance in the main report?
I'm not too technical and only know enough to get myself in trouble <grin>.
Kathy
So I created a subreport containing the budget data. But I could not create the variance formula in the main report because the subreport hadn't run yet so there was no budget to compare to.
So I passed the actuals down to the subreport and had it calculate the variance. So on the main report, the account number and actuals are from Lawson and the budget and variance are from the subreport.
The problem occurs when there is a record for an actual amount for an account but there was no budget for that account. When the main report sends the parameters to the subreport, it returns no records and blank spaces appear in the main report. Since no records were retrieved, no report was created and the variance was not calculated. Even though there were no records in the subreport, I still need the variance to calculate.
I'm guessing the solution lies in where the subreport is placed on the main report. It is currently in GF2a, the account group. The manual running totals are in GF2b and are suppressed so they don't show.
Or else I need to find a way to calculate the variance in the main report (see my second paragraph).
Any help is appreciated. Is there a way to link my Access database to Lawson? Or is there a way to calculate the variance in the main report?
I'm not too technical and only know enough to get myself in trouble <grin>.
Kathy