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

I've got RIGHT JOIN, and rather tha

Status
Not open for further replies.

bobmunkhouse

Technical User
Feb 23, 2003
14
US
I've got RIGHT JOIN, and rather than it displaying a blank field when there is nothing to find, I need it to display a "0". Kind of like a default value.

below is the SQL used for my query.

SELECT [tblTeam].[TeamID], [qryLeagueWon].[Won] AS Won
FROM qryLeagueWon RIGHT JOIN tblTeam ON [qryLeagueWon].[TeamID]=[tblTeam].[TeamID]
GROUP BY [tblTeam].[TeamID], [qryLeagueWon].[Won];

Please help
 
sorry, forget that. Solved it.

just set it to COUNT instead

have a good evening
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top