Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looking for way to count records in subform and display in form

Status
Not open for further replies.

ccmandel

Technical User
Aug 2, 2005
6
US
I have seen many posts about this but can't seem to get a grip on how to do this. I don't have visual basic experience.


I want to be able to count the records in a subform and have this field visible from the form.

Main form: Data Entry Form
subform: Contactinformation subform

Many thanks . .
 
As you said many posts cover this subject.
What have you tried so far ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I have just copied suggestions that I have found online . without any real understanding of the hows and whys . (not a great technique) . .

Dcount
Count
creating text box on subform . . referencing it on main form . .

 
I tried this too: Forms!frmMyForm!SubFormControl.Form.RecordsetClone.RecordCount

 
creating text box on subform . . referencing it on main form
This is the most common way.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Could you explain it by referencing my specific forms? Where do I found the subform control?
 
Forms!frmMyForm!SubFormControl.Form.RecordsetClone.RecordCount
And what is the problem ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top