Hi,
I'm new to this ASP stuff and I'm having trouble getting the like ststement to work for me with wildcards.
I have a page where a user enters a word or part of one to search for, I then pick this up and insert into a LIKE statement, which looks like this:
SQLString = "select * from externalpersonal where name Like = '" & name & "%'"
where name is the variable. Have I got the % in the right place, is this the right symbol, im using an access database.
I get the following error when run:
Syntax error (missing operator) in query expression 'name Like = 'ven%".
I suspect its something simple I'm missing, please help I need this done before I leave for XMAS.
Thanks in advance,
Pilg.
I'm new to this ASP stuff and I'm having trouble getting the like ststement to work for me with wildcards.
I have a page where a user enters a word or part of one to search for, I then pick this up and insert into a LIKE statement, which looks like this:
SQLString = "select * from externalpersonal where name Like = '" & name & "%'"
where name is the variable. Have I got the % in the right place, is this the right symbol, im using an access database.
I get the following error when run:
Syntax error (missing operator) in query expression 'name Like = 'ven%".
I suspect its something simple I'm missing, please help I need this done before I leave for XMAS.
Thanks in advance,
Pilg.