1

I have the following stored query in an MS Access DB:

PARAMETERS pNumber Long;
SELECT *
FROM entries
WHERE id IN ([pNumber]);

Is it possible to do something like:

PARAMETERS pNumberArray Long Array;
SELECT *
FROM entries
WHERE id IN ([pNumberArray]); // pNumberArray = 33, 51, 84, 100

The array will be provided by VB6

1 Answer 1

1

You need a slightly different approach:

SELECT *
FROM entries
WHERE InStr([pNumberArray],[ID])>0
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.