I perform a query on an Access 2010 DB from a VB6 application. The SQL looks like that:
SELECT *, NetPrice AS Price
FROM Products
WHERE Len(ProductName)<>0 AND ProductID IN (1,5,8,13);
The following Code performs the query:
Set ResultRecordset = myDataBase.OpenRecordset(SqlCode, dbOpenSnapshot)
So far, everything is fine, but when the Number of the IDs in the List increses to about 50, then the ResultRecordset is Nothing
. I have found some limitations for Access here, but I am far below the values provided there (1 Table, 200 characters query length, no nested subqueries,...). Any ideas what's going wrong?