Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I have created a database contains three tables.
Table Names :
deposits : "dpid","date","custname","description","chqno","duedate","accname","amount"
bank charges : "bankid","date","accountname","description","amount"
Opening Balance : "opbid","date","accountname","amount"
I need to create a crystal report using above three tables.If i selected these three table it shows all the datas correctly like below,

"date","custname","chqno","duedate","amount","bankid","date","amount","opbid","accountname","amoun"

i need opening balance amount in a column and the other two amounts in a column in a date order. And need to substract deopsit amount and bank cahrges amount from opening balance amount. Can anyone help me to find a good answer for this
Posted
Comments
Herman<T>.Instance 12-Aug-14 4:34am    
I do not see any relational fields between the 3 tables....
Mohamed Shakir 12-Aug-14 5:38am    
account name is unique to all three tables

In crystal report , add these three table and join them by account name , after that you need to drag and drop your fields which you want to show in report.

Is it useful for you , let me know.

Thank you.
 
Share this answer
 
Generate a Report using Crystal Reports in Visual Studio 2010[^]

This link is having simple sample how to do Crystal report with VS and SQL, Likewise you can understand what he is doing and you can think bit for next two tables.
 
Share this answer
 
Comments
Gihan Liyanage 15-Sep-14 6:24am    
Did you got a solution from my support, I can see you have not accepted any answer.If you are ok with this answer plz accept it. Then any user having same problem can identified it has solved the problem..

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