Crystal doesn't really work like a Lookup() against a database, you can use formulas/summary functions/running totals to determine if a value/condition exists, and you can use SQL to determine if a value/condition exists at the data extraction point, and then create a new field, or filter rows.
Perhaps if you explain what it is you intend to do, someone can help you.
However, you can implement this by inserting a subreport (listing the values in the lookup table) in the report header. In the detail section of the subreport load the Key and Lookup values into shared variable arrays (can also be done with a single array).
In the report itself, create a formula that looks up a key in the shared variable array and returns the matching lookup value.
Sounds complex, but it's actually quite simple... )
Cheers,
- Ido CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.