Click here to Skip to main content
16,020,990 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two tables named purchase, and stock

Purchase contains 4 fields-:
                            partname-text
                           invoiceno-number
                           purchasedate-date&time
                           amount-currency
Stock contains stock fields-:stockcode-text
                            stockname-text
                            invoiceno.-number


Can you tell me how can I add these two tables in a crystal report dynamically
when i will give the invoiceno. the report should show content of both table
thank you
Posted
Updated 10-May-11 8:57am
v3

the easiest way to do this is to create a sub report of each of the table you need.
 
Share this answer
 
Comments
[no name] 10-May-11 6:21am    
why Subreport?
Either merge the two tables into one or use sub-reports.

For Sub-reports in Crystal report, look here:
Adding a Subreport to the Original Report[^]
Creating Sub-Reports Using Crystal Reports[^]
Create a Subreport in Crystal Reports [^]
 
Share this answer
 
Comments
[no name] 10-May-11 6:21am    
why Subreport?
Sandeep Mewara 10-May-11 6:27am    
Because you need to display data of two tables in one report.
[no name] 10-May-11 9:46am    
we can display in one report also
Sandeep Mewara 10-May-11 11:09am    
Yes we can using subreports.
[no name] 11-May-11 1:05am    
if we can using single report so why to use subreport?

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