Re: CursorType issue with .mdb and Excel VBA, ADO
- From: "Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom>
- Date: Mon, 22 Aug 2005 18:57:08 +0100
> '//Populate Recordset via execution of ADO Command/SQL Statement -->
> Set rstRate_Defs = cmdGet_Rate_Defs .Execute
This statement _ONLY_ gets either
(i) ForwardOnly, ReadOnly recordsets if underlying Connections
CursorLocation is Server
(ii) Static, ReadOnly recordsets if underlying Connections CursorLocation is
Client
It does not matter what CursorType, LockType you set the Recordset before
hand, they are ignored.
That is true for all databases, all providers AFAIK if you do
rst = cmd.Execute()
If you want different CursorType's, LockType's for your Recordset you need
to do something different than above Execute. In particular you need to
(i) Setup your recordset properties, make sure connection is _NOT_ set
(ii) Setup your command properties, make sure connection _IS_ set
(iii) Do a Recordset Open() making sure the source property is the Cmd
object in step (ii)
Stephen Howe
.
- References:
- CursorType issue with .mdb and Excel VBA, ADO
- From: TempestFyre
- RE: CursorType issue with .mdb and Excel VBA, ADO
- From: TempestFyre
- CursorType issue with .mdb and Excel VBA, ADO
- Prev by Date: RE: CursorType issue with .mdb and Excel VBA, ADO
- Next by Date: Re: Excel Euro Symbol Issue
- Previous by thread: RE: CursorType issue with .mdb and Excel VBA, ADO
- Next by thread: Excel Euro Symbol Issue
- Index(es):
Relevant Pages
|
|