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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mainform & subform field sum!

Status
Not open for further replies.

Jar80

Technical User
Jun 13, 2004
69
FI
I have the mainform and subform now the mainform contains field currency field, now subform contains product information etc. quantity, total... i have done already formula for total field but i have to get total field design of this (Subform total field * Mainform currency) how this is possible to do in the vb code?
 
Hi

How you address the controls depends on wheer you are doing it, if the control is on the sub form, then

(Subform total field * Parent.[Mainform currency])

should do it

if the control is on the main form

(Me.SubFormControlName.FORM.[Subform total field] * Mainform currency)

note these examples are just the general syntax, you will need to use your own control names

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top