C
Carsten
I have an ACCESS DB on which an ADODB query doesnt work.
the query should return the maximum value of a textfield by:
SELECT MAX(textfield) AS Maxnr
FROM table
WHERE textfield >= 'startvalue' AND textfield <= 'stopvalue' AND
LEN(textfield) = 7 and textfield LIKE 'I08____';
(the mask is 'i08' and 4times _ in ADO --> In access i changed the _
underscores into ? (questionsmarks). but the query return a null record,
because somehow now record matches the WHERE clauses.
When i remove the LIKE part, the query runs ok. but the LIKE-part is needed.
In SQL Server it runs perfectly (adodb query).
Are there some limitation in ACCESS? limitations in combinatie with LIKE and
MAX?? OR is there any other idea why this query does run in ADODB or ACCESS
when i have less than 2501 matching records. When i go above 2500 it doesnt
return the expected value. SQL hasnt this problem.
Any ideas why this query doesnt return what i expect?
greetings
Carsten
the query should return the maximum value of a textfield by:
SELECT MAX(textfield) AS Maxnr
FROM table
WHERE textfield >= 'startvalue' AND textfield <= 'stopvalue' AND
LEN(textfield) = 7 and textfield LIKE 'I08____';
(the mask is 'i08' and 4times _ in ADO --> In access i changed the _
underscores into ? (questionsmarks). but the query return a null record,
because somehow now record matches the WHERE clauses.
When i remove the LIKE part, the query runs ok. but the LIKE-part is needed.
In SQL Server it runs perfectly (adodb query).
Are there some limitation in ACCESS? limitations in combinatie with LIKE and
MAX?? OR is there any other idea why this query does run in ADODB or ACCESS
when i have less than 2501 matching records. When i go above 2500 it doesnt
return the expected value. SQL hasnt this problem.
Any ideas why this query doesnt return what i expect?
greetings
Carsten