Take a look at the code in this utility. Specifically, the code behind the CopyDataProviderForm gives a very thorough example of building a data provider, including the .Conditions.Add method. Here is a hint … the syntax varies depending on the type of condition (identified by the .OperandCount property).
Dwayne Hoffpauir (BOB member since 2002-09-19)