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

Prompting For paramters at runtime

Status
Not open for further replies.

vz

MIS
Jul 31, 2001
131
0
0
US
i am trying to run reports from vb and they run but i can't get it to prompt for data the second time. is there a setting or something that requires the propmt to show everytime the report is ran or is there a way to add the refresh button to the viewer?
Thanks
 
To add the refresh button to the viewer, insert the following to your code:

ReportName.WindowShowRefreshBtn = True
 
Think you need to discard the saved data each time you open the report like this:-

cReport.DiscardSavedData

cReport.Database.Tables(1).SetLogOnInfo {your database logon info}

ReportsViewFrm.CRViewer91.ViewReport

ReportsViewFrm.CRViewer91.Zoom (90)

ReportsViewFrm.Show

This is what I use and it works every time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top