G
Guest
Hi all,
I have a table of policies (Table1) and a table of aircraft (Table2) with a
one to many mapping which I've specified using a subdatasheet and equivalent
form. I.e. one policy can have one or many aircraft.
In my policy form, I'm trying to show the total cost of all the aircraft for
that policy.
My syntax is therefore
=DSum("[Cost]","[Table2]",[Table1!Policy]=[Table2!Policy])
but I just keep getting #NAME! It works (incorrectly) if I remove the
criteria.
As you might imagine, the MS help is next to useless as (in classic fashion)
it only gives the most basic example where the criteria is fixed.
Any help will be much appreciated!
Thanks
I have a table of policies (Table1) and a table of aircraft (Table2) with a
one to many mapping which I've specified using a subdatasheet and equivalent
form. I.e. one policy can have one or many aircraft.
In my policy form, I'm trying to show the total cost of all the aircraft for
that policy.
My syntax is therefore
=DSum("[Cost]","[Table2]",[Table1!Policy]=[Table2!Policy])
but I just keep getting #NAME! It works (incorrectly) if I remove the
criteria.
As you might imagine, the MS help is next to useless as (in classic fashion)
it only gives the most basic example where the criteria is fixed.
Any help will be much appreciated!
Thanks