Swiftraven
Technical User
Hi all,
I have a form which is based on 3 queries. I perform various calculation on the data and output it to the forms text boxes. I have created 2 invisible subforms to perform a lookup on a calculated value in a lookup table. In one subform I grab 2 values from the record above and in the other subform I get 2 values from a record below the calculated value, interpolate those values and use the result in the rest of the calculations. This works fine on the form when I just requery the subforms for each record.
My problem is that this does not work on a report. I have had no experience writing reports that do any calculations and it is showing. I tried to recreate the forms calculations on the report, with subreports instead of forms, but when I try and open the report, I am queried for the value that the subreports are based on (I have to input the value twice for some reason). Then the output for that particular record is correct on the report. When I tried to create a report on two records, I had to input the values 12 times by hand to get it to output...
I was wondering if there is a way to perform the calculations on the report like I did on the form or a way to transfer the results from the form into a report (the form can have many records to cycle through and perform calculations on)
Any help is GREATLY appreciated.
Jason
I have a form which is based on 3 queries. I perform various calculation on the data and output it to the forms text boxes. I have created 2 invisible subforms to perform a lookup on a calculated value in a lookup table. In one subform I grab 2 values from the record above and in the other subform I get 2 values from a record below the calculated value, interpolate those values and use the result in the rest of the calculations. This works fine on the form when I just requery the subforms for each record.
My problem is that this does not work on a report. I have had no experience writing reports that do any calculations and it is showing. I tried to recreate the forms calculations on the report, with subreports instead of forms, but when I try and open the report, I am queried for the value that the subreports are based on (I have to input the value twice for some reason). Then the output for that particular record is correct on the report. When I tried to create a report on two records, I had to input the values 12 times by hand to get it to output...
I was wondering if there is a way to perform the calculations on the report like I did on the form or a way to transfer the results from the form into a report (the form can have many records to cycle through and perform calculations on)
Any help is GREATLY appreciated.
Jason