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

Changing nested report properties at run time

Status
Not open for further replies.

rt63

IS-IT--Management
Aug 20, 2001
255
IN
I have a code something like this

for li_ctr = 1 to dw_0.RowCount()
dw_0.object.dw_1[li_ctr].object.cust_cd.Background.Color = '255 ~t If('+string(65000 - li_ctr*4000)+' > 60000, 255, 0)'
dw_0.object.dw_1[li_ctr].object.cust_cd.Background.Mode = 0
next

dw_1 is a nested report object (in details band) containing cust_cd column. According to the above code, the background color for this column in nested report should be red for only the first row in the base report but it makes it in all nested rows. It seems to be working for only the first row in the base report. I have tried using a hardcoded value as dw_1[2] but then it does not even change for the second row in the base report. Any clues on what could be the problem?

R.Tewari
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top