If I understand you correctly, you're trying to get a value into a report for use in a formula. Is that correct? If so, you could define a parameter for this, set the parameter value at runtime in your code, and use the parameter in the formula.
-Dell