Display Number of Employees

P

pjscott

I’m using sql2000 and Access 2007.

I want to display the number of employee on the switchboard form. I’ve
created a simple query that has each employee name that totals 704 employees.
I’ve created a Text Box with the Control Source as: =Count
([qryEmpCount].[Name]). But all I get is #Error.

How can get the number of employees to display on the switchboard form?

Thanks,
Paul
 
P

pjscott

Sorry but I still get the #Error. The quey name and field are correct . But
it doesn't seem be recognizing the query. Any ideas?

Thanks,

Paul

RonaldoOneNil said:
=DCOUNT("[Name]","qryEmpCount")

pjscott said:
I’m using sql2000 and Access 2007.

I want to display the number of employee on the switchboard form. I’ve
created a simple query that has each employee name that totals 704 employees.
I’ve created a Text Box with the Control Source as: =Count
([qryEmpCount].[Name]). But all I get is #Error.

How can get the number of employees to display on the switchboard form?

Thanks,
Paul
 
D

Douglas J. Steele

Name is a reserved word, and should never be used for your own purposes.
Even though you've put the field name in square brackets, perhaps Access is
getting confused.

Try

=DCOUNT("*","qryEmpCount")


--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
(no e-mails, please!)

pjscott said:
Sorry but I still get the #Error. The quey name and field are correct .
But
it doesn't seem be recognizing the query. Any ideas?

Thanks,

Paul

RonaldoOneNil said:
=DCOUNT("[Name]","qryEmpCount")

pjscott said:
I'm using sql2000 and Access 2007.

I want to display the number of employee on the switchboard form. I've
created a simple query that has each employee name that totals 704
employees.
I've created a Text Box with the Control Source as: =Count
([qryEmpCount].[Name]). But all I get is #Error.

How can get the number of employees to display on the switchboard form?

Thanks,
Paul
 
P

pjscott

Got it. Tried different query and it worked.

Have a good weekend and thanks for the help,

Paul


Douglas J. Steele said:
Name is a reserved word, and should never be used for your own purposes.
Even though you've put the field name in square brackets, perhaps Access is
getting confused.

Try

=DCOUNT("*","qryEmpCount")


--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
(no e-mails, please!)

pjscott said:
Sorry but I still get the #Error. The quey name and field are correct .
But
it doesn't seem be recognizing the query. Any ideas?

Thanks,

Paul

RonaldoOneNil said:
=DCOUNT("[Name]","qryEmpCount")

:

I'm using sql2000 and Access 2007.

I want to display the number of employee on the switchboard form. I've
created a simple query that has each employee name that totals 704
employees.
I've created a Text Box with the Control Source as: =Count
([qryEmpCount].[Name]). But all I get is #Error.

How can get the number of employees to display on the switchboard form?

Thanks,
Paul


.
 

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

Top