I am trying to write a VBA Proc to create a simple report on a fixed universe eg beach.unv.
Can someone help me with some sample code to create a new Data provider and add an object eg Resort from the resort class.
My pathetic attempt is not worth including.
Many thanks
Jake
jake1234 (BOB member since 2005-05-23)
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)