Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Dear All

I have built a report and it works once and goes off the next time.


Pls provide me with the best way to keep the program connected.


I have attached the stored procedure which is called by the program.

The program is passing parameters to the report.

I've bound the data and done the test query and it works well


However it works once and its off the next,


Hence I keep re-establishing the sqlDataSource.




ALTER Procedure [dbo].[rpt_Disbursement]
(
	@FromDate	DateTime,
	@ToDate		DateTime
)
As
Begin
	Select @FromDate FromDate,@ToDate ToDate,IDNO,CUSTOMER,INT_NO,INT_NAME,TERM_START,AMTPAYBLE,
	        DATELOAN,ADVLOAN
	From LOANS
	Where DATELOAN Between @FromDate And @ToDate
	Group By IDNO,CUSTOMER,INT_NO,INT_NAME,TERM_START,AMTPAYBLE,DATELOAN,ADVLOAN
End
Posted
Updated 15-Sep-14 8:39am
v2
Comments
OriginalGriff 15-Sep-14 14:04pm    
Sorry, but that doesn't make a whole lot of sense.
What do you mean "it works once and its off the next"?
Please, try to remember we can't see your screen, access your HDD, or read your mind - all we get to work with is exactly what you tell us.
So we have no idea what is connected, what isn't, or what you are doing with or to them!
Use the "Improve question" widget to edit your question and provide better information.
ZurdoDev 15-Sep-14 15:15pm    
What does this mean?

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