> </P>3 k* G- H( z/ G6 C4 V
>Creates a new Recordset object and appends it to the Recordsets collection. </P>2 L' k$ ]5 Q: m& x! P% ^; v
> </P>
>Syntax </P>& }5 I1 t* `/ Q
> </P>
>For Connection and Database objects: </P>3 e1 e, X$ X$ ]; F! }4 G5 a/ v6 i
> </P>: U# t% S6 N" W2 D6 D# a4 r6 R
>Set recordset = object.OpenRecordset (source, type, options, lockedits) </P>
> </P>
>For QueryDef, Recordset, and TableDef objects: </P>
> </P>5 A' T9 S" }' V. _
>Set recordset = object.OpenRecordset (type, options, lockedits) </P>3 x) c* C. O! M9 r7 p
> </P>( O; V. V& M1 l0 `
>The OpenRecordset method syntax has these parts. </P> I9 y- f8 y. W+ S" v- ^5 r# c
> </P>
>
art Description </P>! x( E0 Y; K8 @% L( l/ I
>recordset An object variable that represents the Recordset object you wantt to </P>
>open. </P>0 c! i- r* W0 u* q9 V# C& v% F
>object An object variable that represents an existing object from which you </P>+ z6 G! I" q9 k8 m
>want to create the new Recordset. </P>1 Y5 L, c3 ` J$ [8 D
>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> t8 K" j2 r; V
>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>
>specified in Settings. </P>3 Y1 ?' [$ Z& L; {4 K! P6 ^9 o& J
>options Optional. A combination of constants that specify characteristics of </P>: u, J! H# B: q- `4 |
>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 |