> </P>
>Creates a new Recordset object and appends it to the Recordsets collection. </P>
> </P>
>Syntax </P>
> </P># c/ k5 U" d' \: a# C6 z) u% W
>For Connection and Database objects: </P>$ t9 R5 P! _$ j5 F' z5 g( i6 V+ Y+ F8 X
> </P>
>Set recordset = object.OpenRecordset (source, type, options, lockedits) </P>( f) {9 A# @5 F! Q8 C* j' H
> </P>( R2 W. V; J# E/ a; t' k* T
>For QueryDef, Recordset, and TableDef objects: </P>& t1 [/ p) T& b9 c x# B- s
> </P>
>Set recordset = object.OpenRecordset (type, options, lockedits) </P>; h# h* C$ a6 u. Q. ~
> </P> n+ L, ^9 m- C: B( R8 v4 |2 E8 Y
>The OpenRecordset method syntax has these parts. </P>
> </P>
>
art Description </P>! \" b4 e& P0 e# ~4 ^
>recordset An object variable that represents the Recordset object you wantt to </P>
>open. </P>
>object An object variable that represents an existing object from which you </P>1 S5 @4 r5 d C- j; u
>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>' M+ H! u: C7 L! t& K9 N! ^
>the source can only be a table name. </P>7 E7 r" T5 \7 m. V
>type Optional. A constant that indicates the type of Recordset to open, as </P>
>specified in Settings. </P>' V0 r# Q$ Y( H) R
>options Optional. A combination of constants that specify characteristics of </P>$ g$ g$ E% W! V* R
>the new Recordset, as listed in Settings. </P>
>lockedits Optional. A constant that determines the locking for the Recordsset, </P># m& o1 Y" h+ R# e: R| 欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |