> </P>0 z0 L+ r# a3 H! a; _2 X
>Creates a new Recordset object and appends it to the Recordsets collection. </P>
> </P>
>Syntax </P>
> </P>
>For Connection and Database objects: </P>% M8 z9 v+ _* f
> </P>4 k, Y8 D1 X) e* b1 M* ?
>Set recordset = object.OpenRecordset (source, type, options, lockedits) </P>
> </P>
>For QueryDef, Recordset, and TableDef objects: </P>' p0 d" f+ ` y& c+ E; Y5 W
> </P>
>Set recordset = object.OpenRecordset (type, options, lockedits) </P>
> </P>3 H, p7 d1 B2 t# G' X7 G/ d
>The OpenRecordset method syntax has these parts. </P>
> </P>+ a* C5 J/ B8 u* \5 G* w$ q
>
art Description </P>9 U# o. |% x& e2 y/ w6 ]/ e/ b
>recordset An object variable that represents the Recordset object you wantt to </P>! a" `* X! ^; ?2 V% ]' }9 q
>open. </P>
>object An object variable that represents an existing object from which you </P>: s5 j2 T2 t: Z: A7 N) B: O
>want to create the new Recordset. </P>
>source A String specifying the source of the records for the new Recordset. </P>
>The source can be a table name, a query name, or an SQL statement that </P>
>returns records. For table-type Recordset objects in Microsoft Jet databases, </P>
>the source can only be a table name. </P>
>type Optional. A constant that indicates the type of Recordset to open, as </P>. h9 x4 O. ?8 @1 w, S, G3 y: v7 G
>specified in Settings. </P>4 ~* e+ Q! G# E S% Z6 x% X/ X, B: e
>options Optional. A combination of constants that specify characteristics of </P>" g: T; }* G# S* c3 X& S5 R& {
>the new Recordset, as listed in Settings. </P>
>lockedits Optional. A constant that determines the locking for the Recordsset, </P>| 欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |