Vermontecher
Programmer
Hello,
I am sure this is simple for somoen but it is sure giving me a headache today. I want to do the following...
<%
GetState(s_State)
if s_State = "CO" or _
s_state "Colorado" then
Response.write ("CO")
End If
%>
My function is as follows...
function GetState(s_state)
sql = "select * from [order] where order_id=0" & order_id & " and site_id=0" & site_id
set rs = conn.execute(sql)
if not rs.eof then
s_state = lcase(rs("s_state"))
end if
rs.close : set rs = nothing
end function
I have this working fine but the problem is I only get results if the CO or Colorado are case sensitive. I want them to return no matter what the user types in, co, Co, ColOrAdO, anything like that. What am i doing wrong?
Thanks
Vermont Techer
I am sure this is simple for somoen but it is sure giving me a headache today. I want to do the following...
<%
GetState(s_State)
if s_State = "CO" or _
s_state "Colorado" then
Response.write ("CO")
End If
%>
My function is as follows...
function GetState(s_state)
sql = "select * from [order] where order_id=0" & order_id & " and site_id=0" & site_id
set rs = conn.execute(sql)
if not rs.eof then
s_state = lcase(rs("s_state"))
end if
rs.close : set rs = nothing
end function
I have this working fine but the problem is I only get results if the CO or Colorado are case sensitive. I want them to return no matter what the user types in, co, Co, ColOrAdO, anything like that. What am i doing wrong?
Thanks
Vermont Techer