SUBForm
Create a Footer
In the Footer create a textbox with controlsource =Sum([Total_Jobs])
Name of this textbox: Text2
Make the Footer in yr subform invisible.
Mainform
create a textbox with controlsource = frmMainPSFT.Form!Text2
Krgrds,
Perry
XP said:
Sure,
The base aggregate (Count(Job_Code) as Total_Jobs) is part of a SQL string
in the module of the main form and is updated in the After_Update event of
a
ComboBox on the main form. The After_Update event grabs certain variables
and
updates the RecordSource of the subform as follows:
Me.frmMainPSFT.Form.RecordSource = sSQL
The SQL is good as the subform reflects the data needed without error
every
time the combo box is changed.
Is it not possible to use something like:
=DSUM("Total_Jobs", "frmMainPSFT") ???
"Total_Jobs" of course being the sum of the column I need on the subform
"frmMainPSFT"...
I couldn't get this to work using the form above, but is it not possible
using some similar syntax?