I have a situation where I’m filling in the prompts for the report. I have 2 dataproviders, 1 is the report itself and 2 is pulling the dates to use for the prompts of dataprovider 1. If I refresh the 2nd dataprovider BO asks me to fill in the prompts manually even though I’m supplying them. If I comment out the refresh of the 2nd dataprovider then it will run perfect…what’s the deal? Even if I substitute var1 and var2 for “04/01/2000” and “04/10/2000” it will still ask me to fill in the values if I try to .refresh the dataprovider and it doesn’t if I comment it out.
In a nutshell this is what I have :
ActiveDocument.DataProviders.Item(2).Refresh
var1 = data retrieved from dp2
var2 = data retrieved from dp2
var1 = Format(var1, “mm/dd/yyyy HH:mm:ss”) var2 = Format(var2, “mm/dd/yyyy HH:mm:ss”)
Application.Variables.Item(“1) Please enter a Start Ship Date”).Value = var1 Application.Variables.Item(“2) Please enter an End Ship Date”).Value = var2 ActiveDocument.DataProviders.Item(1).Refresh
Listserv Archives (BOB member since 2002-06-25)