Very grateful for anyone's thoughts on the below.
I want to look at a field entry (OtherPhone field) in a database and check if the entry is numeric. If it is numeric i want to print the contents of the field with a 6 in front of it. If not numeric i just want to print the contents of the field.
Am getting a syntax error - can anyone see where im going wrong? Many thanks for your time...
CODE
if isNumeric((objRS("OtherPhone")) then
Response.write "<tr><td><b>Other Phone: </b>6" & objRS("OtherPhone")
Response.write "</td></tr>"
else
Response.write "<tr><td><b>Other Phone: </b>" & objRS("OtherPhone")
Response.write "</td></tr>"
end if
I want to look at a field entry (OtherPhone field) in a database and check if the entry is numeric. If it is numeric i want to print the contents of the field with a 6 in front of it. If not numeric i just want to print the contents of the field.
Am getting a syntax error - can anyone see where im going wrong? Many thanks for your time...
CODE
if isNumeric((objRS("OtherPhone")) then
Response.write "<tr><td><b>Other Phone: </b>6" & objRS("OtherPhone")
Response.write "</td></tr>"
else
Response.write "<tr><td><b>Other Phone: </b>" & objRS("OtherPhone")
Response.write "</td></tr>"
end if