Can you pinpoint where the overflow occurs? Is it an ID field growing beyond capacity, is it a result (or intermediate result) that overflows? You speak of a query and of VBA, does it occur in Jet or in VBA? Then there is Excel, some text expressions will be interpreted as large number, e.g. a "serial number" like "1E-54" could be interpreted numerically.
(°v°)