meltingpot
Technical User
Hi ... The following code warns me via an image that a date is greater than a year old.
It works great but im looking to put a third image warning that the "safety_insp" date field in MSAccess is greater than '335' days old displaying the image file 'amber.gif'
Also at the same time if the data field is empty display the text 'n/a'.
Ive made no headway as im a beginer ..Ive tied myself in knots !!!!!!!!
Any ideas out there .... many thanks
<%
Dim sBoat, sElapsed
sBoat = b_status("name") & ""
sElapsed= DateDiff("d", b_status("safety_insp"), date())
if iElapsed <= 365 then
'1 year, 365 days or less
Response.Write "<img src='green.gif'>"
else
'More than 365 days
Response.Write "<img src='red.gif'>"
end if
%>