Re: Cursors - Server Side - Only Forward?
From: Gerard (anonymous_at_discussions.microsoft.com)
Date: 03/24/04
- Next message: Paul: "Please advise on table structure"
- Previous message: Joe Celko: "Re: Custom Sort Order (DDL included)"
- In reply to: Karl Gram: "Re: Cursors - Server Side - Only Forward?"
- Next in thread: Karl Gram: "Re: Cursors - Server Side - Only Forward?"
- Reply: Karl Gram: "Re: Cursors - Server Side - Only Forward?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Mar 2004 06:06:32 -0800
Karl,
Yes, I see. But... and there's always a but, My
connection object(Dbs) doesn't have .CursorType as a
property, and when I just type it in despite the
intellisense saying its not there, I get a runtime error
saying "Object doesn't support named arguments". When I
assign .CursorType on the recordset object, the value
doesn't hold after the object is set to a recordset.
After assigning the recordset object a recordset via the
Set statement, the value I have set the .CursorType
property to doesn't persist, and it reverts back to a
value of 0. In the project I am referencing the ActiveX
Data Objects 2.8 Library and the ActiveX Recordset 2.8.
Hope you can shed some light, thanks in advance,
Gerard
Gulf Management Systems
Programmer / Processor
>-----Original Message-----
>Hi Gerard,
>
>You're using VB's ADO.Recordset object to manipulate the
cursor data. The
>default cursor type for a ADO.Recordset is adForwardOnly.
If you set it to
>adOpenDynamic, you should be able to navigate the cursor
any way you want.
>Add the following code to you app just after the
statement where you set the
>cursor location:
>
>Dbs.CursorType = adOpenDynamic
>
>Also have a look here:
>http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/ado270/htm/mdprocursortype.asp
>
>--
>Karl Gram, BSc, MBA
>http://www.gramonline.com
- Next message: Paul: "Please advise on table structure"
- Previous message: Joe Celko: "Re: Custom Sort Order (DDL included)"
- In reply to: Karl Gram: "Re: Cursors - Server Side - Only Forward?"
- Next in thread: Karl Gram: "Re: Cursors - Server Side - Only Forward?"
- Reply: Karl Gram: "Re: Cursors - Server Side - Only Forward?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|