K
Ken Snell [MVP]
SELECT Tablename.*
FROM Tablename
WHERE Tablename.FieldName Like "*" & "YourText" & "*";
FROM Tablename
WHERE Tablename.FieldName Like "*" & "YourText" & "*";
Ken Snell said:OK -- ASP uses ADO, not DAO, for SQL syntax. % is the wildcard in ADO, while
* is the wildcard in DAO.
Dim strSQL
strSQL = "SELECT banemail .* FROM Tablename WHERE '" &
VariableWithSubmittedEmail & "' Like '%' & banemail.email & '%';"