Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number of records in 2nd reocrdset
Message
From
04/06/2002 03:20:25
 
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Number of records in 2nd reocrdset
Miscellaneous
Thread ID:
00664339
Message ID:
00664339
Views:
47
hi everybody,

i open a recordset it works fine when i checked recordset.reocrdcount it returns number of records.

when i open 2nd recordset useing same connection it works fine but cannot return number of records useing recordset.recordcount, it returns -1. whereas it has records reteriving by database.

for first recordset i use this code

allRec = recordset1.recordcount
it works fine

for 2nd reocrdset
allRecProduct = recordSet2.recordcount
it returns -1.

when i populate a combo by 2nd recordset it works successfully. the code is

do while not recordset2.eof
combo1.additem recordset2.fields("Name").value
recordset.movenext
loop
Next
Reply
Map
View

Click here to load this message in the networking platform