Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADO recordset problems.
Message
From
18/06/2001 12:17:03
 
 
To
18/06/2001 03:31:32
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00520465
Message ID:
00520647
Views:
16
This is not ADO, it's DAO. Furthermore this is Access/VBA (judging by the CurrentDB call) code, this should really go on the VB forum instead.

Anyway, if I remember correctly the way you get the correct record count from a DAO snapshot-type recordset is by doing .Movelast and .Movefirst before checking .recordcount. HTH

>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
Previous
Reply
Map
View

Click here to load this message in the networking platform