> </P>
>Creates a new Recordset object and appends it to the Recordsets collection. </P>( @0 R! L" A y5 ]: C# v1 i: q; R
> </P>' x1 X9 j& T/ c x
>Syntax </P>
> </P>' I7 |8 b$ G3 k7 v/ h% S9 n
>For Connection and Database objects: </P>
> </P>
>Set recordset = object.OpenRecordset (source, type, options, lockedits) </P>
> </P>
>For QueryDef, Recordset, and TableDef objects: </P>/ K( B% J% @, B3 D0 _+ B9 }/ j
> </P>
>Set recordset = object.OpenRecordset (type, options, lockedits) </P>$ u; M& G; {7 i( j% q: B
> </P>& d6 }7 b1 Q$ C a4 c1 Q
>The OpenRecordset method syntax has these parts. </P>
> </P>& O) o! `6 ]0 F' N0 Q) y% ?
>
art Description </P>
>recordset An object variable that represents the Recordset object you wantt to </P>% Y1 H L$ [' D, ~1 u# J
>open. </P>
>object An object variable that represents an existing object from which you </P>
>want to create the new Recordset. </P>/ N1 A, A! \5 Q1 L
>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>$ M5 {" L9 z7 k% Y8 Q# [+ ?
>returns records. For table-type Recordset objects in Microsoft Jet databases, </P>
>the source can only be a table name. </P>: b2 q v! r# a& ?3 K" W
>type Optional. A constant that indicates the type of Recordset to open, as </P>
>specified in Settings. </P>
>options Optional. A combination of constants that specify characteristics of </P># A3 @: ]) z& R$ N! A
>the new Recordset, as listed in Settings. </P>, t5 t6 G; B" Y. @
>lockedits Optional. A constant that determines the locking for the Recordsset, </P>| 欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |