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

Building Expression

Status
Not open for further replies.

report2000

Technical User
Mar 1, 2005
45
US
Hi,
I am trying to create a expression for the following condition:
I am using the regulart drag and drop future of creating the query in Access.

I have two fields:
Number of Employee and Number of Minimum Salary reported

I would like to count the number of employees where there is a minimum salary reported.
If the value is no value (null) exist for the coresponding Number of employee field I would like to ommit the number of emloyees from my calulation
 
SELECT Sum([Number of Employee]) AS TotalNumber
FROM yourTable
WHERE [Minimum Salary] Is Not Null;

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

Part and Inventory Search

Sponsor

Back
Top