It doesn't matter that they are from different recordsets.
However, I don't see the definition of SunCount or PvsSunCount in the sample code that you posted.
If these are defined at the top level of the server-side code; i.e.
<%
Dim SunCount
it should work... give it a try; check syntax because I didn't.
Joel
|