Read Only
Type As EClassID
Returns kQueryBranch if the object is a branch.
When you get a branch or a condition from a QueryBranch collection, you don't know which it is until you check its Type property. Note that there is a corresponding QueryLeaf.Type property.
The following example builds on sample code for querying objects. For more information, click . Add the following code to the example after qry.Define.This example prints the type of items in the mainqrybr and andqrybr collections.
' Define query before running this code
For i = 0 To mainqrybr.Count - 1
Debug.Print mainqrybr.Type
Debug.Print mainqrybr.Item(i).Type
Next i
For i = 0 To andqrybr.Count - 1
Debug.Print andqrybr.Type
Debug.Print andqrybr.Item(i).Type
Next i