G
Guest
I have a number of reports that rely on billing data. Each month I go in and
edit each report and change the month portion of all the field names to
prepare it for the next months billing. For instance, the billing invoice for
January contains fields named [Jan 06 A], [Jan 06 B] etc. So, for Feb, I must
edit the report and change the "Jan" to "Feb" for it to pull the correct
field data. I really don't want to have 12 versions of each report for each
year. We'd be talking 120 reports for 2006 alone!
There has got to be a way that the report can stop and ask you for a
"variable" and you type in the field name and it replaces the variable name
in the Control Source with the field name you provide.
I tried to do this, but it gives the following error:
"The expression is typed incorrectly or it is too complex to be evaluated.
...."
The expression it is referring to is =sum([A]-), where A and B are my
"variables" for the fields named [Jan 06 A] and [Jan 06 B]. I've tried every
combination of ['s and no ]'s, different variable names etc.
I'm testing this with a very basic newly created report. There is nothing
else in the report except the calculation above, and one other field which
displays text (and doesn't change from Month to Month).
I'm probably overlooking something very obvious here. It just seems to me if
I can put all sorts of variables in my other reports that literally add text
to the report (like [Name] asks you for a name when you run the report and
places what you type in the report header, for instance), I don't see why
this won't work.
Thanks in advance.
edit each report and change the month portion of all the field names to
prepare it for the next months billing. For instance, the billing invoice for
January contains fields named [Jan 06 A], [Jan 06 B] etc. So, for Feb, I must
edit the report and change the "Jan" to "Feb" for it to pull the correct
field data. I really don't want to have 12 versions of each report for each
year. We'd be talking 120 reports for 2006 alone!
There has got to be a way that the report can stop and ask you for a
"variable" and you type in the field name and it replaces the variable name
in the Control Source with the field name you provide.
I tried to do this, but it gives the following error:
"The expression is typed incorrectly or it is too complex to be evaluated.
...."
The expression it is referring to is =sum([A]-), where A and B are my
"variables" for the fields named [Jan 06 A] and [Jan 06 B]. I've tried every
combination of ['s and no ]'s, different variable names etc.
I'm testing this with a very basic newly created report. There is nothing
else in the report except the calculation above, and one other field which
displays text (and doesn't change from Month to Month).
I'm probably overlooking something very obvious here. It just seems to me if
I can put all sorts of variables in my other reports that literally add text
to the report (like [Name] asks you for a name when you run the report and
places what you type in the report header, for instance), I don't see why
this won't work.
Thanks in advance.