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

Sub Report - Assign SQL Query at runtime

Status
Not open for further replies.

V6

Programmer
May 6, 2001
2
US
Hi all,

In my application, i assigned the main report's sqlquery property value at run time. In the same way, i want to assign the subreport sqlquery at time time. I didn't know that property for doing that one. If any one of them, let me know the way of achieving that one i am so much thankful to them.

Thanks in advance.

Thanks,
Venkatesan.

 
Hi All,

It would be possible by using the following property settings

crystalReport1.SubreportToChange = "sub.rpt"
CrystalReport1.SQLQuery = SQL
CrystalReport1.SubreportToChange = ""
CrystalReport1.Action = 1

It's works well.

Thanks,
Venkatesan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top