Help to Sum a field on a Continuous Form (1 Viewer)

lookforsmt

Registered User.
Local time
Today, 13:24
Joined
Dec 26, 2011
Messages
672
Hi and Good evening to all,

i am trying to total a particular field [Field_Y] and show it on a Form footer, getting an error msg on control source
=Sum([Field_Y])

what am i doing wrong or is there a better way to do it through vba

Thanks Mahesh
 

Gasman

Enthusiastic Amateur
Local time
Today, 10:24
Joined
Sep 21, 2011
Messages
14,319
And the error message is? :( :(
 

CJ_London

Super Moderator
Staff member
Local time
Today, 10:24
Joined
Feb 19, 2013
Messages
16,619
does your field_Y control contain a calculation?

If so, you need to use the calculation in you summing control

. e.g. if field_Y controlsource is =qty*price you need to use

=sum(qty*price)
 

lookforsmt

Registered User.
Local time
Today, 13:24
Joined
Dec 26, 2011
Messages
672
Thanks for your response,
Yes, Field_Y contains calculation [TotalAMT]-[PaidAMT]
i tried this =Sum([TotalAMT]-[PaidAMT]), still getting error msg
 

lookforsmt

Registered User.
Local time
Today, 13:24
Joined
Dec 26, 2011
Messages
672
Appologies Gasman, for writing without using code tags.
Error msg: #Error
 

Gasman

Enthusiastic Amateur
Local time
Today, 10:24
Joined
Sep 21, 2011
Messages
14,319
Is there a value in ALL of those fields?
Try a sum of each field to isolate the issue.
 

Users who are viewing this thread

Top Bottom