Running Total on a form

G

Guest

I have a form with items delivered on a certain date, with one field called
"Paid" with the yes/no option (tick box).

What I would like to do is create a texbox on the bottom of the form, with a
running total of only the records that are ticked in the Paid field
 
T

tina

i assume you're totaling a numeric value in another field. if so, add an
unbound textbox control to the form's footer. in the control's ControlSource
property, add the following, as

=Sum(IIf([Paid], [NameOfNumericField], 0)

hth
 
G

Guest

Comes up as #error


tina said:
i assume you're totaling a numeric value in another field. if so, add an
unbound textbox control to the form's footer. in the control's ControlSource
property, add the following, as

=Sum(IIf([Paid], [NameOfNumericField], 0)

hth


renold1958 said:
I have a form with items delivered on a certain date, with one field called
"Paid" with the yes/no option (tick box).

What I would like to do is create a texbox on the bottom of the form, with a
running total of only the records that are ticked in the Paid field
 
T

tina

post the expression you entered in the unbound control's RecordSource -
copy/paste it, don't type it in. and tell us the name of the unbound
control. also, what is the name of the numeric control? and is [Paid] the
correct name of the Yes/No field in the form's underlying table?


renold1958 said:
Comes up as #error


tina said:
i assume you're totaling a numeric value in another field. if so, add an
unbound textbox control to the form's footer. in the control's ControlSource
property, add the following, as

=Sum(IIf([Paid], [NameOfNumericField], 0)

hth


renold1958 said:
I have a form with items delivered on a certain date, with one field called
"Paid" with the yes/no option (tick box).

What I would like to do is create a texbox on the bottom of the form,
with
a
running total of only the records that are ticked in the Paid field
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top