Are you using ASP with ADO and use a recordset to get the data from your database? You're not providing much information about your situation, so I'll assume the above is true.
In this case, you can use the .EOF (End Of File) property of the recordset:
Code:
' Create and open recordset here
If Not MyRecordset.EOF Then
' Do something with the records
Else
Response.Write("Sorry, no records found")
End If
Does this help?
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.