Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations SDETERS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting of differant values in one column

Status
Not open for further replies.

SteveMeisel

Automotive
Jun 13, 2002
103
I have been trying to create a first time reject report for the quality group using Microsoft Reporting Services that will give us a tally of each of our reject codes. I have been pretty successful with the other reports but this one has beaten me.

In the report I started by creating a differant data set for each reject code and queried them as below. Then I tried to display them on the screen as Expressions in Text boxes beside the reject number but they didn't display properly. In fact none of the text box expressions appeared to get updated. They all had zero's in them. So my next thought is that maybe I only need one data set with a bunch of differant fields, one field for each reject code. We have approximatly 200 differant reject codes/failure modes.

In the Query I have:
SELECT Count(*) as Reject401
FROM [AssyLineDB].[aProcess].[tblSerialNumber]
WHERE Rework=1
AND FirstTimeRejectCode=401
And DateAdded Between @StartDate AND @EndDate

but I am not sure where to go from here to add say reject code 402, 403, 404, etc. and then to get them to dispay on the web page properly.

Any suggestions/advice?

Thanks,

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor