On my asp page I am using the replace function to remove spaces from a user input.
Does anyone know if i can do the same for my data source (excel spreadsheet) if so how?
Many thanks.
Below is the code for the section.
Does anyone know if i can do the same for my data source (excel spreadsheet) if so how?
Many thanks.
Below is the code for the section.
Code:
<%
dim output, number, strSQL, rs, mystring
output=request.form("input")
mystring = Replace(output, " ", "")
if mystring <> "" then
strSQL="SELECT * FROM [sheet1$] WHERE phone1='"&mystring&"'"
set rs=Server.CreateObject("ADODB.Recordset")
rs.Open strSQL, conn, 3,3
%>