M
Mick
I really am a newbie at this so please bare with me. I am trying to introduce
an "IF" statement into an asp and although it sort of works The first part of
the statement seems to work i.e.
dtHoursDifferent = (dtSecondTime-dtFirstTime)%>
gives me the correct sum of the hours from the two fields, and places the
correct sum in the field dtHoursDifferent. The "IF" part is not correct as it
places a "0" or "1" at the top of the page if the criteria is met (or not)
and not in the correct field of dtHoursDifferent.
Am I trying the impossible, or am I so far away, I should start again?
--------code starts---------
dtHoursDifferent = (dtSecondTime-dtFirstTime)%>
<%if dtHoursDifferent <4 then %>0<%
else %>1<%
end if%>
Thanks for helping.
an "IF" statement into an asp and although it sort of works The first part of
the statement seems to work i.e.
dtHoursDifferent = (dtSecondTime-dtFirstTime)%>
gives me the correct sum of the hours from the two fields, and places the
correct sum in the field dtHoursDifferent. The "IF" part is not correct as it
places a "0" or "1" at the top of the page if the criteria is met (or not)
and not in the correct field of dtHoursDifferent.
Am I trying the impossible, or am I so far away, I should start again?
--------code starts---------
dtHoursDifferent = (dtSecondTime-dtFirstTime)%>
<%if dtHoursDifferent <4 then %>0<%
else %>1<%
end if%>
Thanks for helping.