>FOR EACH CRFormulaField IN CRFormulaFields
> IF CRFormulaField.Name = "SDate" then
> CRFormulaField.Text = "Date(2000,01,01)"
> ELSE
> IF CRFormulaField.Name = "EDate" then
> CRFormulaField.Text = "Date(2000,01,01)"
> ENDIF
> ENDIF
>NEXT
>
Deddy,
You should be using the FormulaFieldName property instead of Name (i.e. CRFormulaField.FormulaFieldName). The Name property would contain the extra characters you would see in the report designer itself (i.e. {@SDate}).
Try that out and see if that works for you.
Laterness,
Jon
Jon Rosenbaum
Devcon Drummer