Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO recordset problems.
Message
From
18/06/2001 06:01:24
 
 
To
18/06/2001 03:31:32
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00520465
Message ID:
00520486
Views:
14
Hi!

As far as I know, RecordCount do not always return the proper value. It is always proper only for client-side recordsets. Try to open record sets other way by using the direct creating of the recordset object and using its Open method with specifying of the exact recordset type.

>Hi all, can anyone tell me why I am getting 5 results back from my rsDiv query and only one result back from my rsProdLine query? Has anyone encountered this type of behaviour before? Am I using the wrong syntax? I'm pretty new to ADO soo..... btw - it is an access db not a foxpro db...
>
>
>Dim db As Database
>Dim rsDiv As Recordset
>Dim rsProdLine As Recordset
>
>Set db = CurrentDb
>Set rsDiv = db.OpenRecordset("select distinct division as div " + _
> "from productline]")
>Set rsProdLine = db.OpenRecordset("select productline " + _
> "from productline")
>
>MsgBox rsDiv.RecordCount
>MsgBox rsProdLine.RecordCount
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform