response.write

M

Mick

Having a little trouble as they say! what Im trying to acheive is putting the
text "call us" into the field dttotalcost if the field dtdays value is less
than 3. If the value is 3 or more then the result is 20. The question is,
can I put text into the field dttotalcost if dtdays is less than 3, and if so
the syntax does not seem to be correct.
Thanks in advance.

<%
if dtdays <3 then
response.write dttotalcost = Call Us
else
dtcostperday= 20
end if
%>
 
M

Mick

sorry existing should read
<%
if dtdays <3 then
response.write dttotalcost = Call Us
else
dttotalcost = 20
end if
%>
 
M

Mike Mueller

How about this:
<%
if dtdays <3 then
dttotalcost = "Call Us"
else
dttotalcost = 20
end if
response.write dttotalcost
%>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top