Creating a calculated control in Subform and Main form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My question.
Data I need is the total of the Rental Amount to come up on the main form
when selecting the different rental units on the main form.
I have entered in the footer of the subform which is named RentalUnitSubform.
No label name
Name: txtRentalAmountSum
TextBox: =Sum(RentalAmount])
Main Form:
Lable Name: lblRentalAmountTtl
Caption: Total Monthly Income:

Text Box Name: txtRentalAmountTtl
Control Source: =RentalUnitSubform.Form!txtRentalAmount
I am new at this but I have spent many hours changing names adding or taking
away names.
I sure hope someone can help.
Thanks,
Renae
 
Renae,

Looks like you were close. I believe that the control source for
txtRentalAmountTtl should be:

=RentalUnitSubform.Form!txtRentalAmountSum

Brian
 
Thanks Brian, but that didn't work either.
--
Renae


Brian Bastl said:
Renae,

Looks like you were close. I believe that the control source for
txtRentalAmountTtl should be:

=RentalUnitSubform.Form!txtRentalAmountSum

Brian

Renae said:
My question.
Data I need is the total of the Rental Amount to come up on the main form
when selecting the different rental units on the main form.
I have entered in the footer of the subform which is named RentalUnitSubform.
No label name
Name: txtRentalAmountSum
TextBox: =Sum(RentalAmount])
Main Form:
Lable Name: lblRentalAmountTtl
Caption: Total Monthly Income:

Text Box Name: txtRentalAmountTtl
Control Source: =RentalUnitSubform.Form!txtRentalAmount
I am new at this but I have spent many hours changing names adding or taking
away names.
I sure hope someone can help.
Thanks,
Renae
 
Are you using the Expression Builder, or are you just typing it in? Are you
sure that 'RentalUnitSubform' is the name of the subform control? It may or
not be the same as the name of the subform.

Brian

Renae said:
Thanks Brian, but that didn't work either.
--
Renae


Brian Bastl said:
Renae,

Looks like you were close. I believe that the control source for
txtRentalAmountTtl should be:

=RentalUnitSubform.Form!txtRentalAmountSum

Brian

Renae said:
My question.
Data I need is the total of the Rental Amount to come up on the main form
when selecting the different rental units on the main form.
I have entered in the footer of the subform which is named RentalUnitSubform.
No label name
Name: txtRentalAmountSum
TextBox: =Sum(RentalAmount])
Main Form:
Lable Name: lblRentalAmountTtl
Caption: Total Monthly Income:

Text Box Name: txtRentalAmountTtl
Control Source: =RentalUnitSubform.Form!txtRentalAmount
I am new at this but I have spent many hours changing names adding or taking
away names.
I sure hope someone can help.
Thanks,
Renae
 
Yes it is the name of the subform/subreport. I checked. I am just typing it
into the text boxes.
--
Renae


Brian Bastl said:
Are you using the Expression Builder, or are you just typing it in? Are you
sure that 'RentalUnitSubform' is the name of the subform control? It may or
not be the same as the name of the subform.

Brian

Renae said:
Thanks Brian, but that didn't work either.
--
Renae


Brian Bastl said:
Renae,

Looks like you were close. I believe that the control source for
txtRentalAmountTtl should be:

=RentalUnitSubform.Form!txtRentalAmountSum

Brian

My question.
Data I need is the total of the Rental Amount to come up on the main form
when selecting the different rental units on the main form.
I have entered in the footer of the subform which is named
RentalUnitSubform.
No label name
Name: txtRentalAmountSum
TextBox: =Sum(RentalAmount])
Main Form:
Lable Name: lblRentalAmountTtl
Caption: Total Monthly Income:

Text Box Name: txtRentalAmountTtl
Control Source: =RentalUnitSubform.Form!txtRentalAmount
I am new at this but I have spent many hours changing names adding or
taking
away names.
I sure hope someone can help.
Thanks,
Renae
 

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