Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sub From Totals

Status
Not open for further replies.

Katana2003

Programmer
Jun 25, 2003
23
0
0
GB
I have two sub forms on a header form. On one of the sub forms there are two sub total fields I need to put the total of these two fields into a total field on the other sub form. How can I do this?

Thanks.

 
One way is,I think, a matter of knowing the hierarchy of the sub form fields then setting the 'total field' to the sum of them,

eg

=[forms]![myParentForm]![subForm1]!subTotalField + [forms]![myParentForm]![subForm2]!subTotalField

(my syntax above is probably not accurate, as Access isn't my main skillset and I've not got Access or any of the apps on my current PC to check.)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top