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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting records in a query

Status
Not open for further replies.

pmo

Technical User
Jan 15, 2001
76
AU
I have a form that consists of several sub forms. Thanks to "solodroid" I have been able to display in a text box the number of records that appear in a form.
Is it possible to do similar with a query that may not necessarily relate specifically to one of the forms that is opened.

I often refer to forms by using [Forms]![FormName]![Field] can you do similar with a query (if so how do you request a particular record?

In anticipation of your help.


Wayne
 
You may just put the following code in the form_current event procedure:

[Forms]![FormName]![Field]=dcount("*","queryname")

seaport
 
Many Thanks It works Great. First Time I needed the Process Bar.... Mike :)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top