# ASP: Record count ALLWAYS returns -1

**URL:** <https://forum.kirupa.com/t/asp-record-count-allways-returns-1/143690>\
**Category:** Uncategorized\
**Created:** [April 7, 2005, 10:54pm UTC](https://forum.kirupa.com/t/asp-record-count-allways-returns-1/143690 "2005-04-07T22:54:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imported\_dinkumrocks](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@imported\_dinkumrocks](https://forum.kirupa.com/u/imported_dinkumrocks)\
**Post date:** [April 7, 2005, 10:54pm UTC](https://forum.kirupa.com/t/asp-record-count-allways-returns-1/143690/1 "2005-04-07T22:54:43Z")

</div>

ok. ive got a problem, and i dont know why.

ive got a project with comments, and i want to show how many comments there are.

ive got this as code…

```auto
 <%= RScomments.recordcount%> 

```

but it always returns -1. i know -1 is the default if for some reason it cant count the records, but i dont know why it wouldnt be counting the records.

thanks for anyhelp.  
-Naaman
