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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB & Crystal. Getting the sub-report to not save data

Status
Not open for further replies.

RiverGuy

Programmer
Jul 18, 2002
5,011
US
I figured out a work around to a problem I posted in one of the other Crystal forums of getting my user-defined date-range that my report works off of to show up in the report(the view is not passing any dates to the report). I added a subreport that hits another table that I populate when I populate the view for the main table. It contains the date range the user has selected.

But....although the main report details will be refreshed every time the app is opened, the subreport will never show the updated date. THe only way to do this is to open the report file and refresh it manually.

I have to box checked under options to re-import subreports. I'm fairly new to Crystal, but decent in VB 6. So any ideas how I should get this sub-report to show the correct data?

Thanks.
 
In the sub-report make sure that 'save data with report' is not checked. It is in the 'report options' dialog box.

Howard Hammerman,

Crystal Reports training, consulting, books, training material, software, and support. Scheduled training in 8 cities.
howard@hammerman.com
800-783-2269
 
It is un-checked. I also have "Re-import subreports when opening reports" checked.

Maybe I should try designing the report from within VB instead? Right now it is embedded a file. But I couldn't find how to add a subreport in the VB part.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top