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

Counting records with criteria and outputting to text box

Status
Not open for further replies.

rich01

Programmer
Jul 16, 2001
3
0
0
GB
Please help !!!

I have a database that users log service calls into.

One of the forms they go into only shows service calls that are outstanding (haven't been given to an engineer).

I have a Call status field which can have the state "Outstanding".

Basically I want to produce a query or whatever to count the number of records that have the criteria "Outstanding" and output a total to a text box.

I want this so when they go into the database it will show the number of calls that are outstanding before they even go into the outstanding form.

Please help !!

Am I being a complete dope ???

Cheers

Rich
 

Set the control source of the text box to

=DCount("*","TblName","[Status]='Outstanding'")

Terry Broadbent
Please review faq183-874.

"The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge." - Daniel J Boorstin
 
Cheers Terry your are the don !!

Work like a charm !!

Thanks very much for your help !!

This website is the best thing on the net !


Thanks again


Rich
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top