Ask a Question related to ASP, Design and Development.
-
middletree #1
recordcount -1
I'm simply trying to get a number of records returned in a recordset, and
just get a -1. I have looke din a few books and other references, can't
seem to find any answers. Anyone have any idea why I can't get a real
number? For the record, the recordset is not empty. In fact, it has many
records which I can see plainly on the screen. But when I do response.write
rs.recordcount, it just shows -1
middletree Guest
-
RecordCount Issues
Hi folks! Long story short: Within the application, which I'm developing ATM, I have to do some update- and delete-queries, but it seems that... -
Indirect recordcount
I have a variable that contains the name of a query. How can I get the RecordCount for that query? I've tried using Evaluate() in several... -
Getting a recordcount
Hi I have opened a database in PHP and would like to know whether a particular record exists. i.e. $ThisUsername = $_REQUEST;... -
RecordCount Property and SQL
When using an access database, I could retrieve the recordcount with code below For r = 1 to RS.RecordCount When I try the same syntax on a... -
Why does the RecordCount property always = -1
I have a working set of data coming back from my database without any problems. I am trying to add a textbox to each row of repeated data and... -
Ray at #2
Re: recordcount -1
[url]http://www.aspfaq.com/2193[/url]
Ray at work
"middletree" <middletree@htomail.com> wrote in message
news:eGxmhPzkDHA.3504@TK2MSFTNGP11.phx.gbl...response.write> I'm simply trying to get a number of records returned in a recordset, and
> just get a -1. I have looke din a few books and other references, can't
> seem to find any answers. Anyone have any idea why I can't get a real
> number? For the record, the recordset is not empty. In fact, it has many
> records which I can see plainly on the screen. But when I do> rs.recordcount, it just shows -1
>
>
Ray at Guest
-
Tom Kaminski [MVP] #3
Re: recordcount -1
"middletree" <middletree@htomail.com> wrote in message
news:eGxmhPzkDHA.3504@TK2MSFTNGP11.phx.gbl...response.write> I'm simply trying to get a number of records returned in a recordset, and
> just get a -1. I have looke din a few books and other references, can't
> seem to find any answers. Anyone have any idea why I can't get a real
> number? For the record, the recordset is not empty. In fact, it has many
> records which I can see plainly on the screen. But when I do[url]http://www.aspfaq.com/show.asp?id=2193[/url]> rs.recordcount, it just shows -1
--
Tom Kaminski IIS MVP
[url]http://www.iistoolshed.com/[/url] - tools, scripts, and utilities for running IIS
[url]http://mvp.support.microsoft.com/[/url]
[url]http://www.microsoft.com/windowsserver2003/community/centers/iis/[/url]
Tom Kaminski [MVP] Guest
-
middletree #4
Re: recordcount -1
That did it; thanks
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:uplPESzkDHA.2216@TK2MSFTNGP12.phx.gbl...and> [url]http://www.aspfaq.com/2193[/url]
>
> Ray at work
>
> "middletree" <middletree@htomail.com> wrote in message
> news:eGxmhPzkDHA.3504@TK2MSFTNGP11.phx.gbl...> > I'm simply trying to get a number of records returned in a recordset,many> > just get a -1. I have looke din a few books and other references, can't
> > seem to find any answers. Anyone have any idea why I can't get a real
> > number? For the record, the recordset is not empty. In fact, it has> response.write> > records which I can see plainly on the screen. But when I do>> > rs.recordcount, it just shows -1
> >
> >
>
middletree Guest
-
Ken Schaefer #5
Re: recordcount -1
Alternatively, look at using .GetRows() if you also need the data, rather
than executing two queries.
..getRows places your Recordset data into a VBScript array. Then you can use
the UBound() function to work out how many records there are.
Cheers
Ken
"middletree" <middletree@htomail.com> wrote in message
news:%23iujuN0kDHA.3024@tk2msftngp13.phx.gbl...
: That did it; thanks
:
:
: "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
: news:uplPESzkDHA.2216@TK2MSFTNGP12.phx.gbl...
: > [url]http://www.aspfaq.com/2193[/url]
: >
: > Ray at work
: >
: > "middletree" <middletree@htomail.com> wrote in message
: > news:eGxmhPzkDHA.3504@TK2MSFTNGP11.phx.gbl...
: > > I'm simply trying to get a number of records returned in a recordset,
: and
: > > just get a -1. I have looke din a few books and other references,
can't
: > > seem to find any answers. Anyone have any idea why I can't get a real
: > > number? For the record, the recordset is not empty. In fact, it has
: many
: > > records which I can see plainly on the screen. But when I do
: > response.write
: > > rs.recordcount, it just shows -1
: > >
: > >
: >
: >
:
:
Ken Schaefer Guest
-
Chris Barber #6
Re: recordcount -1
That's a nice FAQ Ray.
Some day I must try and see if you have a searchable index [XML hopefully] I
can periodically [read 'automagically'] get hold of and put on my intranet /
website.
Chris.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:uplPESzkDHA.2216@TK2MSFTNGP12.phx.gbl...
[url]http://www.aspfaq.com/2193[/url]
Ray at work
"middletree" <middletree@htomail.com> wrote in message
news:eGxmhPzkDHA.3504@TK2MSFTNGP11.phx.gbl...response.write> I'm simply trying to get a number of records returned in a recordset, and
> just get a -1. I have looke din a few books and other references, can't
> seem to find any answers. Anyone have any idea why I can't get a real
> number? For the record, the recordset is not empty. In fact, it has many
> records which I can see plainly on the screen. But when I do> rs.recordcount, it just shows -1
>
>
Chris Barber Guest
-
Ray at #7
Re: recordcount -1
It's not my site!!! [url]http://www.aspfaq.com/credits.asp[/url] But you're right.
It's an outstanding FAQ site...
Ray at work
"Chris Barber" <chris@blue-canoe.co.uk.NOSPAM> wrote in message
news:ObbInf8kDHA.2772@TK2MSFTNGP12.phx.gbl...I> That's a nice FAQ Ray.
>
> Some day I must try and see if you have a searchable index [XML hopefully]/> can periodically [read 'automagically'] get hold of and put on my intranet> website.
>
> Chris.
Ray at Guest
-
Chris Barber #8
Re: recordcount -1
Since you're always posting the FAQ ref's, I thought it was your site!
I had a vision of you knowing every FAQ number off by heart and just quoting
them ad hoc in the relevant posts.
LoL.
Chris.
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:ex1UzS%23kDHA.2456@TK2MSFTNGP09.phx.gbl...
It's not my site!!! [url]http://www.aspfaq.com/credits.asp[/url] But you're right.
It's an outstanding FAQ site...
Ray at work
"Chris Barber" <chris@blue-canoe.co.uk.NOSPAM> wrote in message
news:ObbInf8kDHA.2772@TK2MSFTNGP12.phx.gbl...I> That's a nice FAQ Ray.
>
> Some day I must try and see if you have a searchable index [XML hopefully]/> can periodically [read 'automagically'] get hold of and put on my intranet> website.
>
> Chris.
Chris Barber Guest
-
Ray at #9
Re: recordcount -1
Heh. I think I accuse Aaron of the same thing before. No, I link that that
site all the time because I think 95% of what I know came from there. Don't
forget to click the paypal link. :]
Ray at work
"Chris Barber" <chris@blue-canoe.co.uk.NOSPAM> wrote in message
news:u9OMJi%23kDHA.708@TK2MSFTNGP10.phx.gbl...quoting> Since you're always posting the FAQ ref's, I thought it was your site!
> I had a vision of you knowing every FAQ number off by heart and justhopefully]> them ad hoc in the relevant posts.
>
> LoL.
>
> Chris.
>
> "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
> news:ex1UzS%23kDHA.2456@TK2MSFTNGP09.phx.gbl...
> It's not my site!!! [url]http://www.aspfaq.com/credits.asp[/url] But you're right.
> It's an outstanding FAQ site...
>
> Ray at work
>
> "Chris Barber" <chris@blue-canoe.co.uk.NOSPAM> wrote in message
> news:ObbInf8kDHA.2772@TK2MSFTNGP12.phx.gbl...> > That's a nice FAQ Ray.
> >
> > Some day I must try and see if you have a searchable index [XMLintranet> I> > can periodically [read 'automagically'] get hold of and put on my> />> > website.
> >
> > Chris.
>
>
Ray at Guest



Reply With Quote

