Hi all i want to change in my code the name of a datafield in a datareport to swap when it needs the showed data Best regards
Thoms
Code: rpt1.Sections("detail").Controls("txtpcntDisAs").DataField = rsresults.Fields("pcntDisAsIsSelected").Name assumes 1) report object is named rpt1 2) textbox to hold data is named txtpcntDisAs and is in the "Details" (or whatever you named it) section of your report.
rpt1.Sections("detail").Controls("txtpcntDisAs").DataField = rsresults.Fields("pcntDisAsIsSelected").Name
Shawn Hull VB6, SP3 (Professional Edition)
Forum Rules