I am trying to construct a query that searches for a character strings in any position in a column.
The problem lies in the fact that the character strings I am searching for can be any of 740 values.
I initially started to key in the 740 values in the criterea box, but this displays an error when more than 1024 characters are keyed into criterea.
I then tried to key the commands free format in the SQL view. This accepted the statement, but when I tried to run it, it displays the message 'Query is too complex'.
An example of the select statewment is:-
SELECT TBL1.ABC, TBL1.DEF, TBL1.GHI,
FROM TBL1
WHERE ([TBL1].[ABC] Like "*3010000*" Or [TBL1].[ABC] Like "*3010002*" ([TBL1].[ABC] Like "*3531965*"); (The Like and Or continue 740 times).
Is there another way of obtaining the desired results??
The problem lies in the fact that the character strings I am searching for can be any of 740 values.
I initially started to key in the 740 values in the criterea box, but this displays an error when more than 1024 characters are keyed into criterea.
I then tried to key the commands free format in the SQL view. This accepted the statement, but when I tried to run it, it displays the message 'Query is too complex'.
An example of the select statewment is:-
SELECT TBL1.ABC, TBL1.DEF, TBL1.GHI,
FROM TBL1
WHERE ([TBL1].[ABC] Like "*3010000*" Or [TBL1].[ABC] Like "*3010002*" ([TBL1].[ABC] Like "*3531965*"); (The Like and Or continue 740 times).
Is there another way of obtaining the desired results??