Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic creation of dataprovider thro VBA 1

Status
Not open for further replies.

boani

Programmer
Jun 22, 2002
7
IN
Hi all,
I have tried to create dataprovider dynamically thro VBA
This is the code:

Dim dp as dataprovider
Set dp = Application.ActiveDocument.Dataproviders
.AddQueryTechnique( &quot;<UniverseName>&quot;
,&quot;<UniverseDomainName>&quot;)
dp.Queries.Item(1).Results.Add &quot;<className>&quot;, &quot;<Obj>&quot;
dp.Refresh

I find that the dataprovider is getting created but the report is not being displayed.Can anyone provide help on this?

thanx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top