Reference to a subform prooblem

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

Guest

I have several continous forms where I find it very useful to show the record
count using a text box with Control Source = Count([CustomerID]), for
example. But I'm having trouble with syntax when the text box is on a main
form and the records are in a subform. any clues?

thank you in advance
 
I have several continous forms where I find it very useful to show the record
count using a text box with Control Source = Count([CustomerID]), for
example. But I'm having trouble with syntax when the text box is on a main
form and the records are in a subform. any clues?

thank you in advance

You can "relay" a count, sum, or other such aggregate. Put a textbox,
txtCount say, in the Subform Footer; you can set its Visible property
to No or simply not display the footer if you wish. Then on a mainform
textbox use a control source like

=subMySubform.txtCount

using the Name property *of the Subform Control*, which might or might
not be the same as the Name of the form within that control.

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