When I run a query in a macro it is missing one record. I have a very simple query that reads Table 1, groups on three fields, sums two fields and makes Table 2 without any filtering criteria. When I run the query separately it is not missing this record.
My research shows that this typically occurs from joins, database corruption, null values. None of these apply, there are no joins. Query SQL is as follows:
SELECT BOUND_TOTAL.[BROKER OWNER], BOUND_TOTAL.[BROKER NAME], BOUND_TOTAL.PROGRAM, Sum(BOUND_TOTAL.Count) AS [# BOUND], Sum(BOUND_TOTAL.PREMIUM) AS PREMIUM INTO [HIT RATIO_BOUND TEST]
FROM BOUND_TOTAL
GROUP BY BOUND_TOTAL.[BROKER OWNER], BOUND_TOTAL.[BROKER NAME], BOUND_TOTAL.PROGRAM;
My research shows that this typically occurs from joins, database corruption, null values. None of these apply, there are no joins. Query SQL is as follows:
SELECT BOUND_TOTAL.[BROKER OWNER], BOUND_TOTAL.[BROKER NAME], BOUND_TOTAL.PROGRAM, Sum(BOUND_TOTAL.Count) AS [# BOUND], Sum(BOUND_TOTAL.PREMIUM) AS PREMIUM INTO [HIT RATIO_BOUND TEST]
FROM BOUND_TOTAL
GROUP BY BOUND_TOTAL.[BROKER OWNER], BOUND_TOTAL.[BROKER NAME], BOUND_TOTAL.PROGRAM;