Wrox Programmer Forums
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 26th, 2006, 09:42 AM
Friend of Wrox
Join Date: Apr 2006
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Default count data from subform


This may seem like a stupid question, but I don't know how to do this...

I have a form with a subform on it. What I would like to have is that on my main form, I have a 'box' that displays me the number of records on the subform. So it should basically count the number of record that or on the subform that is related to the active form. How can I do this?

I have tried to use
but this did not work. Does anybody knows how to do this?

Old May 27th, 2006, 11:51 AM
Friend of Wrox
Join Date: Apr 2006
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts

I found a way to make it work...

I use


or in my case


and it works...

Similar Threads
Thread Thread Starter Forum Replies Last Post
Navigating data in a subform Bob Pierce Access VBA 2 February 1st, 2007 10:58 AM
Subform not displaying data hikinfool Access 8 February 24th, 2006 06:11 PM
Subform on many to many data aware Access 14 August 12th, 2005 02:36 AM
subform data in report exhibitor Access 4 May 16th, 2005 12:19 PM
Display data in a subform marcin2k Access VBA 1 March 1st, 2005 04:37 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.