The code below will create a new data provider with the Resort object:
Dim DataProv As DataProvider
Set DataProv = ThisDocument.DataProviders.AddQueryTechnique("Island Resorts Marketing")
Call DataProv.Queries(1).Results.Add("Resort", "Resort")
For a very detailed example, take a look at the code behind this utility. That utility copies a data provider, so by definition it creates a new data provider … soup to nuts.
Dwayne Hoffpauir (BOB member since 2002-09-19)