I must have Friday-itis!
I have a main form which has a sub-form. The sub form is shown as a datasheet, but in design view I have a control on the Form Footer which totals a field on the Detail area. This works fine for the subform when displayed by itself as a single form (including applied filters to simulate being used on the main form) and naturally the total field doesn't appear when the sub-form is shown as a datasheet.
On the main form there is a control which refers to the sub-form and to the total control in the following way
[Code=txt]
=sfrmSubFormNam e!txtTotalContr olName
[/Code]
and it just sits there empty! No #ERROR, no #NAME?, no nuthin'!
The spelling of the sub-form name and control is correct, I had two other people look at it.
I've done this a million times (Hyperbole alert!), perhaps I shouldn't have had that last glass of red while watching the cricket last night!
Drat! I'm actually going to have to submit this... I was hoping that just typing it out clearly would make something go Click! in my (admittedly fuzzy) brain, but no, not yet.
Jim
I have a main form which has a sub-form. The sub form is shown as a datasheet, but in design view I have a control on the Form Footer which totals a field on the Detail area. This works fine for the subform when displayed by itself as a single form (including applied filters to simulate being used on the main form) and naturally the total field doesn't appear when the sub-form is shown as a datasheet.
On the main form there is a control which refers to the sub-form and to the total control in the following way
[Code=txt]
=sfrmSubFormNam e!txtTotalContr olName
[/Code]
and it just sits there empty! No #ERROR, no #NAME?, no nuthin'!
The spelling of the sub-form name and control is correct, I had two other people look at it.
I've done this a million times (Hyperbole alert!), perhaps I shouldn't have had that last glass of red while watching the cricket last night!
Drat! I'm actually going to have to submit this... I was hoping that just typing it out clearly would make something go Click! in my (admittedly fuzzy) brain, but no, not yet.
Jim
Comment