J
Julia B
Hi, I've got a problem with an ADO recordset which I believe is caused by a
special character in my sql string.
My sql string is as follows:
SELECT RecordID FROM PartNumbers WHERE PNRecd = '987-4829-001=LA' AND
(Status = 'New' OR Status = 'Amended')
This works fine (displaying 1 record) if I create a new query in Access but
returns an empty recordset when run through code using ADO.
I'm assuming the engine doesn't like the '=' character, because it works
with all other records that don't contain this character. I'm wondering if
anyone knows what I can replace this with? I've searched hi and low and can't
find it's character value.
Thanks in advance.
Julia
special character in my sql string.
My sql string is as follows:
SELECT RecordID FROM PartNumbers WHERE PNRecd = '987-4829-001=LA' AND
(Status = 'New' OR Status = 'Amended')
This works fine (displaying 1 record) if I create a new query in Access but
returns an empty recordset when run through code using ADO.
I'm assuming the engine doesn't like the '=' character, because it works
with all other records that don't contain this character. I'm wondering if
anyone knows what I can replace this with? I've searched hi and low and can't
find it's character value.
Thanks in advance.
Julia