Author: dotty | Posted on: 9/7/2008 11:48:05 PM | Views : 296

Hi all, I have a form with a dropdown list and a a text box for jobno,startdate and enddate, i also have a stored procedure, but based on this stored procedure ,how do i display the result values in the textboxes based on a jobno that i enter in the form.............could someone pls correct the VB code I have for this?? ...it is giving me this error "Procedure sickleave has no parameters and arguments were supplied"......this is the first time am doing this n i know there is some big blunder here....pls help

my SP is as below:

CREATE PROCEDURE sickleave
 AS
declare @tbjobno int

declare @total int


select @total=sum(leavecount)  from tblsickleave where jobno=@tbjobno

if @total<=6
select sickleavetypee from tblSickLeaveType where sickleavecode=1
else if @total > 6 and @total <=12
select sickleavetypee from tblSickL ...

Go to the complete details ...