SELECT Sorgum.fat_otomatik
FROM Sorgu1 AS Sorgum
WHERE (((Sorgum.tofatura_siparisno) Is Null) AND ((DCount("fat_no","Sorgu1","[fat_adetmt] = " & [fat_adetmt] & " And [fat_no] = '" & [fat_no] & " '"))>1) AND (((select count([fat_otomatik]) from Sorgu1 where [fat_otomatik]>=Sorgum.[fat_otomatik])) Not In (DCount("fat_no","Sorgu1","[fat_adetmt] = " & [fat_adetmt] & " And [fat_no] = '" & [fat_no] & " '"))));
Sorgu2 nin Sql kodunu aşağıdaki ile değiştirerek deneyiniz.