Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Filter not working on an ASP page

Status
Not open for further replies.

kav123

Programmer
Jan 12, 2005
210
GB
I don't know whether this question should be asked here or in ASP, but i am giving it a try here.... I am calling an access query from my ASP page, which returns a recordset. Once i get the recordset, i am applying Filter on the recordset, in the ASP page. Basically it's a LIKE condition. It works fine for all the parameters like(a*, *a*,a%,%a). The only one where it crashes is *a condition, i.e. if i apply a filter on the query like 'Surname LIKE *a', the ASP page throws up an error.

I fail to understand why?? Any ideas??

 
If with ADO I suggest:
[tt]"Surname Like '%a'"[/tt]

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I tried that, but throws up the same error. The error says something like wrong type of arguments...
 
Hi guys, i think i have sorted this one, found out that Access does not support that, when "*a" is called from ASP etc. Thanks for your contributions anyways
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top