Click here to Skip to main content
15,907,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We have 2 tables, audit_month and dept. We take dept_no as foreign key in audit_month. When we display report we want a dept_name from dept table in report. How do we do this?
Posted
Updated 8-Apr-10 0:52am
v2

1 solution

When editing your Crystal Report, go to the Database Expert. Make sure both tables are selected to be used inside the report. Then click on the Links tab. There you can drag your dept_no from the audit table and drop it over the dept_no in the dept table. This should create a link between them. Now you can put the dept_name in your report and if you've set it up correctly Crystal should handle the joining for you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900