• Hi, thanks for your reply.

    I have tried both your suggestions. 2nd one made no difference, but the first one worked in the same way removing the spaces did, although making more sense it still means a change to an existing, legacy DLL! What it doesn't explain is why this started occuring in the first place and the randomness of it!

    The first example I mentioned now does not cause it to fail but the following does, although not on everyones PC:-

    strOrganisationIDs = "(5611,5612,0)" - fails with the same error message - if I remove the aforementioned spaces (or change the cursor to client side) it works.

    strOrganisationIDs = "(5612,5611,0)" - works (with spaces and server side cursor).

    Confused?!!!