HiI need help to create a stored procedure. My current asp page uses the code below. I would like to create a stored procedure to handle all of this in a case statement, if possible.As you can tell there are two conditions that interact with a field to give two warnings. i.e when date is > 3 write warning text 'a' in fieldwhen date is > 15 write warning text 'b' in filedMany thanks
if rsDisplayAll("signeddate") <> "" then ' if signed date is available if isnull(rsDisplayAll("InstallationDate")) and (datediff("d",rsdisplayAll("signeddate"),date) > 3 ) then Response.write " <font color=#0033ff> Attention! :- 3 days since signed date. Please enter an installation date. </font><br>" alert=1 end if end ifif rsDisplayAll("signeddate") <> "" then ' if signed date is available if isnull(rsDisplayAll("InstallComplete")) and (datediff("d",rsdisplayAll("signeddate"),date) > 15 ) then Response.write "<br> <font color=red> Warning! :- Installation incomplete 15 days after signed date. </font>" alert=1 end if end ifWoolly