Why does AbsolutePosition return as -1?
|
| View previous topic :: View next topic |
| Author |
Message |
Ahmed Guest
|
| Why does AbsolutePosition return as -1? |
| |
|
|
|
|
Guest
|
This could be because the provider you selected doesn't support AbsolutePosition. But it is more likely that you are not opening the cursor with the correct properties. Make sure you are using a dynaset or snapshot cursor; this means that adOpenForwardOnly should be used in place of adOpenStatic, and the CursorLocation should be set to adUseClient.
Rather than demonstrate with a code sample, I am going to assume you are trying to implement a paging mechanism (e.g. 20 rows per page); please see Article #2120 for some better approaches than using these heavy client-side recordset properties. |
| |
|
|
|
|