Hi,
Firstly, I have to confess that I am a newby to ASP.
I have a Form setup that retrieves the variables entered by users to display a policy number. The problem lies in the way the policies have been entered originally (about 500,000 records). There could be variations in the style that people will know them by. eg. One User may call a policy 04/1234 and another user may call it 04.1234 so I want to be able to search for just 1234 if needed. I realise that I need to use LIKE and need to use wildcards, the only problem is that I don't know where to place the wildcards. I've tried a few combinations to no avail.
set objRS = con.execute("SELECT * FROM web WHERE policy = '"+ request("policy") +"' ORDER BY policy ASC")
If anyone could help I would be very gratefull.
Firstly, I have to confess that I am a newby to ASP.
I have a Form setup that retrieves the variables entered by users to display a policy number. The problem lies in the way the policies have been entered originally (about 500,000 records). There could be variations in the style that people will know them by. eg. One User may call a policy 04/1234 and another user may call it 04.1234 so I want to be able to search for just 1234 if needed. I realise that I need to use LIKE and need to use wildcards, the only problem is that I don't know where to place the wildcards. I've tried a few combinations to no avail.
set objRS = con.execute("SELECT * FROM web WHERE policy = '"+ request("policy") +"' ORDER BY policy ASC")
If anyone could help I would be very gratefull.