Where they should be placed if compared to the recordset execution line?
blnApproxPos = rsExample.Supports(adApproxPosition)
blnBookmark = rsExample.Supports(adBookmark)
What should I do if both variables return value FALSE?
Quote:
quote:Originally posted by alyeng2000
it may provider which doesnot support this property
You can determine whether your recordset supports the RecordCount property by
using the Recordset objectâs Supports method with the dApproxPosition or AdBookmark parameters, as demonstrated in the following code:
blnApproxPos = rsExample.Supports(adApproxPosition)
blnBookmark = rsExample.Supports(adBookmark)
If the value of blnApproxPos or blnBookmark is True, then RecordCount immediately reflects the actual number of records in the recordset.
the Recordset object cursortype must also supports movement (forward and backward) like set to adOpenStatic
Ahmed Ali
Software Developer
|