how to get to other records of continuous subform

  • Thread starter Thread starter MattE
  • Start date Start date
M

MattE

Please help this novice get this figured out.

I have a form and in it is a subform which is continuous. In the
subform, in a text field called Price which will actually have numeric
content, in the AfterUpdate event, I need to total the contents of all
the Price's. I'm having trouble 1) knowing how many records there are,
and then 2) totaling the Price fields.

I'd have to go through Me's Parent, right?

Thanks,
Matt
 
Please help this novice get this figured out.

I have a form and in it is a subform which is continuous. In the
subform, in a text field called Price which will actually have numeric
content, in the AfterUpdate event, I need to total the contents of all
the Price's. I'm having trouble 1) knowing how many records there are,
and then 2) totaling the Price fields.

I'd have to go through Me's Parent, right?

Thanks,
Matt

Nope.

Make the Subform's Footer visible (with the View menu option in form
design).

On the Footer put a textbox with a Control Source

=Sum(CCur([Price]))

Why are you storing a numeric price in a Text datatype field???

John W. Vinson[MVP]
 
Thanks! I managed to figure the same thing out just before reading
your answer. Actually it's a TextBox with a numeric value (this is in
the subform, not in the table).
Matt

John said:
Please help this novice get this figured out.

I have a form and in it is a subform which is continuous. In the
subform, in a text field called Price which will actually have numeric
content, in the AfterUpdate event, I need to total the contents of all
the Price's. I'm having trouble 1) knowing how many records there are,
and then 2) totaling the Price fields.

I'd have to go through Me's Parent, right?

Thanks,
Matt

Nope.

Make the Subform's Footer visible (with the View menu option in form
design).

On the Footer put a textbox with a Control Source

=Sum(CCur([Price]))

Why are you storing a numeric price in a Text datatype field???

John W. Vinson[MVP]
 

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

Back
Top