Re: Multiple recordsets?
- From: "zz12" <IDontLikeSpam@xxxxxxxxxxx>
- Date: Fri, 4 May 2007 15:14:57 -0700
I think I've overcame this in that I added the following line of code which
now gets the full RecordCount.
mySourceConn.CursorLocation = adUseClient
Thanks again guys. Take cares :)
"zz12" <IDontLikeSpam@xxxxxxxxxxx> wrote in message
news:OQ8jeZpjHHA.4848@xxxxxxxxxxxxxxxxxxxxxxx
That worked :)
Now that it's working just one other small issue that I'm encountering if
I may is that I'm trying to use the following:
For countr = 1 To mySourceRecordset.RecordCount
but it only performs my process on just the first record and then doesn't
loop since the RecordCount is coming up as -1.
I tried using the MoveLast and MoveFirst but it gives me an error message
"Rowset does not support fetching backward.". I also tried changing the
CursorType to some of the other ones but it still doesn't allow the
MoveLast/MoveFirst or get the full RecordCount.
mySourceRecordset.Open mySQLCmdText, mySourceConn, adOpenKeyset
Do you know if I should be using a different CursorType or another method
in getting the full RecordCount?
Thank you both for your replies. I totally appreciate it.
"Bob Butler" <noway@xxxxxxxxxxx> wrote in message
news:%23rRVJKojHHA.2272@xxxxxxxxxxxxxxxxxxxxxxx
"zz12" <IDontLikeSpam@xxxxxxxxxxx> wrote in message
news:OrRCD6mjHHA.3452@xxxxxxxxxxxxxxxxxxxxxxx
If mySourceRecordset.RecordCount < 1 Then
Ralph's link is good but you may alo be getting RecordCount of -1 due to
the cursorlocation and other properties; try
If mySourceRecordSet.EOF Then
.
- Follow-Ups:
- Re: Multiple recordsets?
- From: Bob Butler
- Re: Multiple recordsets?
- References:
- Multiple recordsets?
- From: zz12
- Re: Multiple recordsets?
- From: Bob Butler
- Re: Multiple recordsets?
- From: zz12
- Multiple recordsets?
- Prev by Date: Re: Multiple recordsets?
- Next by Date: Re: Multiple recordsets?
- Previous by thread: Re: Multiple recordsets?
- Next by thread: Re: Multiple recordsets?
- Index(es):
Relevant Pages
|