S
Steveo
Server = Win2000 SP4 + SQL Server 2000 SP3
Client = Win2000 SP4 + Access 2000 SP3
I have a main report with 5 columns of numbers, these have
various groupings/levels.
I would like to be able reference the last line of totals
on the main report in a sub report.
The sub report has these columns taken from a table called
tbl_Ratios:
Type: Opperator: Amount:
Population / 100000
In the sub report I would like to have 5 extra empty text
box's which are in line with the totals from the main
report.
I then tried to use the ON FORMAT event of the sub report
to dynamically set the Control Source of each of the empty
box's as/when the report is viewed.
eg.
me.txtBox1.properties("Record Source")= "=(" &
report_rpt_Main_Total01 & me.opperator & me.Amount & ")"
In English
me.txtBox1.Record Source = "=(200,000/100000)"
But I can't seem to set the record source of the text
box's.
The reason I don't want to hard code the calculations, is
that the Amount and Opperation may change and for end
users changing data in table is easier than messing with
the design of a report.
Also using the 'CAN SHRINK/GROW' properties of the sub
report, means if people add different ratios then the sub
report will just grow as the number of lines
increases/decreases.
Apologies for the waffle
Can I change the record source of the text box's at
runtime?
Or am I going about this all wrong?
Any suggestions would be fantastic as I've hit a wall and
can't think round this.....
Client = Win2000 SP4 + Access 2000 SP3
I have a main report with 5 columns of numbers, these have
various groupings/levels.
I would like to be able reference the last line of totals
on the main report in a sub report.
The sub report has these columns taken from a table called
tbl_Ratios:
Type: Opperator: Amount:
Population / 100000
In the sub report I would like to have 5 extra empty text
box's which are in line with the totals from the main
report.
I then tried to use the ON FORMAT event of the sub report
to dynamically set the Control Source of each of the empty
box's as/when the report is viewed.
eg.
me.txtBox1.properties("Record Source")= "=(" &
report_rpt_Main_Total01 & me.opperator & me.Amount & ")"
In English
me.txtBox1.Record Source = "=(200,000/100000)"
But I can't seem to set the record source of the text
box's.
The reason I don't want to hard code the calculations, is
that the Amount and Opperation may change and for end
users changing data in table is easier than messing with
the design of a report.
Also using the 'CAN SHRINK/GROW' properties of the sub
report, means if people add different ratios then the sub
report will just grow as the number of lines
increases/decreases.
Apologies for the waffle
Can I change the record source of the text box's at
runtime?
Or am I going about this all wrong?
Any suggestions would be fantastic as I've hit a wall and
can't think round this.....