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

cross tab query to return zeros

Status
Not open for further replies.

shelspa

Technical User
Dec 13, 2001
66
US
I have a cross tab query that counts the number of jobs done per shift. Shift is a field that is entered as 1,2, or 3. I have:row heading = date, column heading = shift, row heading = ID, row heading = total of jobs, and value = jobs

This is based off of a make table that is made for a specific date range. The problem is sometimes there is nothing for a given shift in a particular date range. So for example when the cross tab query is run, I may get columns for 1st and 2nd shift but 3rd shift will not show up if there weren't any jobs done on 3rd. I would like it to appear anyway with zeros. Can I put in a statement somewhere that says if one of the three values isn't present, return all zeros for it down the column?
 
Nevermind, I think I have it. From another post "Enter each column header you want to display in double quotes separated by commas."

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top