G
Guest
I'm trying to get the correct expression for a calculated control on a Main
Form which has a Subform. The Main Form is called "InsMain" and has the
primary key of [Part_ID]. The subform is InsTransactionsTest and is linked
to the Main Form by [Part_ID].
On the Main Form I want the control to sum all the values for the field
[Amount] on the subform for THAT PARTICULAR [Part_ID]. Here's an example of
what I've tried the last time, which doesn't work.
=DSum("Forms![dbo.InsMain]![dbo_InsTransactionsTEST].Form![Amount]
","[Part_ID] = Forms![dbo_InsTransactionsTEST]![Part_ID]")
Can someone give me an idea of what I'm doing wrong?
Form which has a Subform. The Main Form is called "InsMain" and has the
primary key of [Part_ID]. The subform is InsTransactionsTest and is linked
to the Main Form by [Part_ID].
On the Main Form I want the control to sum all the values for the field
[Amount] on the subform for THAT PARTICULAR [Part_ID]. Here's an example of
what I've tried the last time, which doesn't work.
=DSum("Forms![dbo.InsMain]![dbo_InsTransactionsTEST].Form![Amount]
","[Part_ID] = Forms![dbo_InsTransactionsTEST]![Part_ID]")
Can someone give me an idea of what I'm doing wrong?