dsum wont work on subform

John thomas

Registered User.
Local time
Today, 08:54
Joined
Sep 4, 2012
Messages
206
Hi everyone
Every time i try to get info from a sub form or its table ,Things never sem to work.Is there something special you have to do for eg maybe going via the main form?
I am trying to use dsum as an alternative to multiplying info in the sub form
This is the code =DSum("SoldAtPrice*Quantity","[Order Details]","IDNewOrders=" & [OrderID FK])

It comes up with error
 
Where are you using your expression.
Can you tell us more about what you are trying to total.
 
Hi bob
Thanks for your help
I have now solved the prolem it was due to me putting the wrong name in
However I always have trouble when dealing with sub forms .Is there a reason for this or is it just me (which is vary possible)
 
if you try to read a SubForm data from a sub or function use the full path (Form.SubForm)
 

Users who are viewing this thread

Back
Top Bottom