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

97 to XP conversion SQL problem

Status
Not open for further replies.

Trebor100

Programmer
Mar 14, 2006
90
GB
Hi all,

The following SQL query works a-okay on 97 but does not work on XP. The problem is on the Format function which is not recognised in XP however its removal causes the query to return no current record. Any help would be much appriciated.

TRANSFORM Count(Query1.ApplicationID) AS CountOfApplicationID
SELECT Schools.SchoolID, Query1.From, Query1.To
FROM Query1 RIGHT JOIN Schools ON Query1.SchoolID = Schools.SchoolID
GROUP BY Schools.SchoolID, Query1.From, Query1.To
PIVOT Format([Available],"Yes/No") In ("Yes","No");
 
And what about this ?
PIVOT IIf([Available],'Yes','No')

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

Part and Inventory Search

Sponsor

Back
Top