travisbrown
Technical User
- Dec 31, 2001
- 1,016
Querying a Access 2000 db though ADO from ASP page using this query:
Empty recordest in ADO; returns right results in Access Query Grid.
If I change ALIKE to LIKE in ADO and Access query and the % to * in Access, same results.
[pre]
c_id c_name c_phone CountOfc_id
DFACEY FACEY,DV(DAVID) 604-623-3699 0
[/pre]
The recordset does work in ADO. It won't return the above record (and probably others). If I change the filter to 'brown' I get results in both ADO and Access. Why does it work on some records and not others?
[pre]
c_id c_name c_phone CountOfc_id
ALIBROWN BROWN,A(ALISTAIR) 0
[/pre]
Code:
SELECT tCaller.c_id, tCaller.c_name, tCaller.c_phone, Count(tTicket.c_fid) AS CountOfc_id
FROM tCaller LEFT JOIN tTicket ON tCaller.c_id = tTicket.c_fid
WHERE (tCaller.c_id) <> ''
GROUP BY tCaller.c_id, tCaller.c_name, tCaller.c_phone HAVING ((tCaller.c_id ALIKE 'facey%') OR (tCaller.c_phone ALIKE '%facey%') OR (tCaller.c_name ALIKE 'facey%')) ORDER BY c_name;
Empty recordest in ADO; returns right results in Access Query Grid.
If I change ALIKE to LIKE in ADO and Access query and the % to * in Access, same results.
[pre]
c_id c_name c_phone CountOfc_id
DFACEY FACEY,DV(DAVID) 604-623-3699 0
[/pre]
The recordset does work in ADO. It won't return the above record (and probably others). If I change the filter to 'brown' I get results in both ADO and Access. Why does it work on some records and not others?
[pre]
c_id c_name c_phone CountOfc_id
ALIBROWN BROWN,A(ALISTAIR) 0
[/pre]