> </P>/ j4 R1 Q1 w( W& J: U5 a
>Creates a new Recordset object and appends it to the Recordsets collection. </P>
> </P>$ h4 |& Q j8 B0 \; i5 K z
>Syntax </P>5 v. Q+ n& F X* A
> </P>. u4 a+ \0 I2 M2 j' \+ \
>For Connection and Database objects: </P>
> </P>6 A( G4 R, Z; Q1 D* O
>Set recordset = object.OpenRecordset (source, type, options, lockedits) </P>) o; g/ n" Q0 b [, u8 X! H6 }
> </P>
>For QueryDef, Recordset, and TableDef objects: </P>
> </P>9 F$ B- A% w* }1 b
>Set recordset = object.OpenRecordset (type, options, lockedits) </P>/ b& o2 d. `( m1 v+ ]
> </P>
>The OpenRecordset method syntax has these parts. </P>
> </P>% P8 `" o1 t7 ^5 ?$ P9 g
>
art Description </P>
>recordset An object variable that represents the Recordset object you wantt to </P>$ p" H, x( N6 V8 X A& ]9 A4 ` }1 W
>open. </P>
>object An object variable that represents an existing object from which you </P>
>want to create the new Recordset. </P>7 p' X8 b7 D+ N9 ]) ?0 c' b
>source A String specifying the source of the records for the new Recordset. </P>$ G% d2 { r+ v4 n, d! m: I
>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>8 X8 i: L, ? D9 U3 ^$ M% E
>type Optional. A constant that indicates the type of Recordset to open, as </P>, i& d+ c/ D* `- L
>specified in Settings. </P>
>options Optional. A combination of constants that specify characteristics of </P>3 t4 D$ {" ^2 z5 l8 G. f" G
>the new Recordset, as listed in Settings. </P>4 S. i3 V$ g4 z" v
>lockedits Optional. A constant that determines the locking for the Recordsset, </P>| 欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |