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

how to pass variable in formula field?

Status
Not open for further replies.

jcao0000

MIS
Jun 4, 2007
12
CA
I have two formula fields which show dates period (start date and end date) of a report. Now I need to calculate another two dates (the start date and end date of last year with the same week number) while querying the database using these two dates. Afterwards I need to pass these two dates to subreport. How can I do this?

I thought of using SQL Expression Field, but can I pass variable to SQL Expression Field?

Also, I probably can create a command object to do a query. But can I also pass variable in Formula Field to command object?

Thanks in advance for the help!
 
You can reference a formula field from within another formula field, at least in Crystal. You can 'nest' them to suit your needs.

[yinyang] Madawc Williams (East Anglia, UK). Using Windows XP & Crystal 10 [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top