> intLastAgent = 1 * cInt(intLastAgent) well, hell; I had tried each of those separately, but not together, which did the trick thanks, Anthony (and Judah and Marc; screwy quotes are the bane of my existence so both your replies sent me checking very carefully, which is A Good Thing) joel