Hi Ken
I like Ted Roche's approach, but have you tried CAST()?
BTW, here's a way to make your query more readable which may help you
with future queries.
TEXT TO artfield TEXTMERGE NOSHOW
(SELECT ICASE(musPerfs.arttype == "P",
ALLTRIM(musPeople.firstname) + " " + ALLTRIM(musPeople.lastname),
musPerfs.arttype == "B",
musBands.bandname," ")
FROM musPerfs
JOIN musPeople ON musPeople.pkid = musPerfs.artid
JOIN musBands ON musBands.pkid = musPerfs.artid
WHERE musPerfs.songid = musSongs.pkid)
ENDTEXT
artfield = CHRTRANC(m.artfield, CHR(13) + CHR(10) + CHR(9), SPACE(0))
TEXT TO thequery TEXTMERGE NOSHOW
SELECT musSongs.song, CAST(<<m.artfield>>),CHAR(50)) AS artist
FROM musSongs
JOIN musPerfs ON musPerfs.songid = musSongs.pkid
JOIN musRecs ON musRecs.perfid = musPerfs.pkid
ORDER BY song, artist
ENDTEXT
thequery = CHRTRANC(m.thequery, CHR(13) + CHR(10) + CHR(9), SPACE(0))
HTH
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.