31. juli 2001 - 13:53Der er
2 kommentarer og 1 løsning
adCmdTable
Hvem gider hurtigt og præcist forklare mig hvad adCmdTable er, og hvad jeg skal bruge det til! Også gerne adCmdTableDirect, adCmdText, adCollectionRecord osv.
Jeg er med på at det placeres efter min cursertype som her: ObjRS.Open sql, ObjConn, adOpenForwardOnly, adLockReadOnly, adCmdTable
I dont think this parameter is so important! This is taken form Access help and we are looking at the Options parameter...
Parameters
Source Optional. A Variant that evaluates to a valid Command object, an SQL statement, a table name, a stored procedure call, a URL, or the name of a file or Stream object containing a persistently stored Recordset.
ActiveConnection Optional. Either a Variant that evaluates to a valid Connection object variable name, or a String that contains ConnectionString parameters.
CursorType Optional. A CursorTypeEnum value that determines the type of cursor that the provider should use when opening the Recordset. The default value is adOpenForwardOnly.
LockType Optional. A LockTypeEnum value that determines what type of locking (concurrency) the provider should use when opening the Recordset. The default value is adLockReadOnly.
Options Optional. A Long value that indicates how the provider should evaluate the Source argument if it represents something other than a Command object, or that the Recordset should be restored from a file where it was previously saved. Can be one or more CommandTypeEnum or ExecuteOptionEnum values.
CommandTypeEnum = 2 (adCmdTable) Evaluates CommandText as a table name whose columns are all returned by an internally generated SQL query.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.