Subject Re: unknown win32 error 22
Author Didier Gasser-Morlay
May be a shot in the dark but would not the syntax be

SELECT BATCHID, BATCHDATUM
FROM AKTKONTO
WHERE BATCHKOD = 1
AND BATCHID IS NOT NULL
GROUP BY BATCHID, BATCHDATUM"

(note the position of the 'NOT' in 4th line)

Didier