How To Create Hierarchical Recordsets Programmatically (196029)
The information in this article applies to:
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.1 SP2
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q196029
For a Microsoft Visual Basic .NET version of this article, see 316260.
SUMMARY
When you create hierarchical recordsets programmatically, you do not have to
specify a data provider. However, a Shape provider is still needed to
provide a session context. In this case, the shape command would not
contain an actual SQL statement to append columns to (that is, Select SQL
syntax). Child commands would be appended as columns to the higher level
recordset without any source table. This yields the following hierarchy:
ParentRS
|
|_ _ _ _ _ ChildRS
|
|_ _ _ _ _ GrandChildRS
|
|_ _ _ _ _ etc..
Modification Type: | Minor | Last Reviewed: | 3/14/2005 |
---|
Keywords: | kbDatabase kbhowto KB196029 |
---|
|