Brian,
Thanks, I am new to Crystal, so it is possible I am going about this the wrong way, big picture speaking...
I am sorting/grouping/filtering based on a Parameter Field.
I have 5 parameters I let the user set before the report is run:
Date Range Begin
Date Range End
Group by: (1 of 5 fields)
Sort by: (1 of 5 fields)
PCode Type: (Billable, Non-Billable, All)
I have a formula for Group Order, a formula for Sort Order, and a formula for PCode Type.
So the Parameter feeds the Formula, which feeds the record selector.
PCode is the formula that is giving me the fits. Adding the code you suggested returns a different error: A number is required here.
Select {?PCode}
Case "Non-Billable":
9999
Case "All":
{praccode.pcode}
Case "Billable":
{praccode.pcode}<>"9999"
Adding it without the quotes also produces the error, this time around the whole section.
Note: {praccode.pcode} is a Number
I'm stumped.
Patrick