|
-
Oct 27th, 2005, 04:23 AM
#1
Thread Starter
Hyperactive Member
-
Oct 27th, 2005, 05:07 AM
#2
Re: rst.recordcount
Can you post your code? Also take a look at the links in my signature regarding connecting via ADO to either an Access DB or MySQL.
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Oct 27th, 2005, 05:50 AM
#3
Re: rst.recordcount
Use either adOpenKeyset or adOpenStatic as the CursorType for server side cursors or use a client side cursor. Client side cursors use only adOpenStatic for CursorTypes regardless of which CursorType you select.
-
Oct 27th, 2005, 05:54 AM
#4
Hyperactive Member
Re: rst.recordcount
Hello Hack,
the same problm i am getting & i also posted thread regarding my problem today mornig only subjected that "working fine with SQL server 2000 but not in VB 6.0", but not get any satisfactory answer.....plz help...it will be benificial for me as well as this person....
On Error GoTo http://www.vbforums.com
Note :
1) Please use [vbcode]your code goes in here [/vbcode] tags when posting VB code.
2) Please mark thread as Resolved using the Thread Tools menu, if you got solution.
-
Oct 27th, 2005, 05:58 AM
#5
Thread Starter
Hyperactive Member
-
Oct 27th, 2005, 06:00 AM
#6
Re: rst.recordcount
Then, change your cursor type and you will get a proper recordcount.
If you don't wish to change your cursor type, then the alternative is to do a SQL SELECT COUNT
-
Dec 12th, 2005, 07:44 PM
#7
Fanatic Member
Re: rst.recordcount
hi, i'm having a similar problem... i tried to change my cursor type to either openkeyset or openstatic and still generated a problem...
for openstatic, i develop an error: "arguments are of the wrong type..."
for openkeyset, i still get a -1 value for recordcount....
how do you do a SQL SelectCount?
-
Dec 12th, 2005, 07:58 PM
#8
Re: rst.recordcount
Hack was talking about using the following sql statement:
VB Code:
strSQL = SELECT Count(*) as Counter FROM YourTableName WHERE Yourcondtion
Last edited by Mark Gambo; Dec 12th, 2005 at 08:38 PM.
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|