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

Conditionally movr a field

Status
Not open for further replies.

ajayz90

Programmer
Nov 12, 2002
65
US
Can i conditional;ly move a field in crystal?

Ie whenever a passed parameter is 'staff' the sftaff column moves to the right to overwrite a sessions colum which has been suppressed.I want to move it conditionally whenever a parameter like staff is passed about 10 cms to the right.

Ajay
 
It would be easier to suppress the Staff column and conditionnally control which field and heading gets printed in the sessions column. You can easily write a formula that will do this.

Craig Berntson
MCSD, Visual FoxPro MVP, Author, CrysDev: A Developer's Guide to Integrating Crystal Reports"
 
You have options here, either write 2 formulas which conditionally change based on the parm:

if {?parm} = "staff" then
{table.staff}
else
""

Then for the sessions formula:

if {?parm} = "staff" then
{table.sseesions}
else
{table.staff}

Or select insert section below on whatever section it is, and lay the fields out how you want for the other option, then conditionally suppress the sections based on the parm.

-k
 
Sorry, been a day riddled with typos:

For the staff formula:

if {?parm} <> &quot;staff&quot; then

else
&quot;&quot;

Then for the sessions formula:

if {?parm} = &quot;staff&quot; then
{table.staff}
else
{table.sessions}

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top