I am not sure what the Global.asa file has to do with this. Are you creating an ADODB.Recordset? Is that what the RecordCount property is referring to?
If so, make sure you open the Recordset in such a way that it supports the RecordCount. Not every Recordset does that. For example, a Read-Only, Forward-Only Recordset will always return -1 as the RecordCount.
Take a look here:
http://www.adopenstatic.com/faq/recordcounterror.asp to see how you can fix this. Also, make sure you check out the alternatives to RecordCount here:
http://www.adopenstatic.com/faq/reco...ternatives.asp.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.