>Hello all,
>
>Anyone know how to pass a formula at runtime using Crystal Reports 8.5 ?
>Examples provided with CR are written in VB and didn't work in VFP.
>
>TIA,
>
>Deddy
Deddy,
If you know the name of the formula field you wish to populate at runtime, then you will need to loop through the report object's FormulaFields collection and compare the FormulaFieldName to the field name in question. Once you find it, then you just set the Text property of the formula object to be whatever formula string you want (e.g. oFormulaField.Text = "CurrentDate").
HTH.
Laterness,
Jon
Jon Rosenbaum
Devcon Drummer