Click here to Skip to main content
15,909,656 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#

Dear sir

please tell me how can get closing balance in next Day or Month of opening for eg 19-May-2014 closing Balance is 500 rs then i want to Display it next DAY or Month Opening Balance. I m using asp.net and Database is SQL 2005.Please take the code with output

Thanks

Er. Praveen Sharma
Posted
Comments
Richard MacCutchan 20-May-14 4:03am    
The closing balance on one day is the opening balance on the next day.
Thanks7872 20-May-14 4:55am    
:laugh:
Member 10554297 20-May-14 5:24am    
The closing balance on one day is the opening balance on the next day.
YES
BUT i dont know how can solve this problem please give me a demo that means code and its output .please help me
thanks
Praveen Sharma
Richard MacCutchan 20-May-14 5:34am    
Demo, code for what? We have no idea what your code does, what your database looks like or in fact what you are trying to calculate.

1 solution

Create a trigger at database level to update the opening balance after updating the closing balance.
 
Share this answer
 
Comments
irfanansari 1-Mar-16 1:51am    
how to create a trigger ?
irfanansari 26-Sep-19 7:56am    
please tell complete process then i will be able to clear my mind how

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