goldriverdancer
Registered User.
- Local time
- Today, 20:52
- Joined
- Jan 4, 2010
- Messages
- 13
Dear all,
I'm getting really confused about how I should go about this. I have a main form and a subform. For each record in the main form, there are several records displayed in the subform.
On the subform, I have a field [Cost]. I want to calculate the sum of this field for all the records in the subform, for each record in the main form; then display it in a textbox. For example, for a particular client, I have several orders in the subform, and I want to calculate the total cost of all the orders.
I don't know if i should use VBA code or a query, or DLookUp to do this. Please help!
Thanks,
Stef
I'm getting really confused about how I should go about this. I have a main form and a subform. For each record in the main form, there are several records displayed in the subform.
On the subform, I have a field [Cost]. I want to calculate the sum of this field for all the records in the subform, for each record in the main form; then display it in a textbox. For example, for a particular client, I have several orders in the subform, and I want to calculate the total cost of all the orders.
I don't know if i should use VBA code or a query, or DLookUp to do this. Please help!
Thanks,
Stef