That should work but I haven't tried it that way...
And, yep, the code I posted up to the "AS" was from Books OnLine... the rest is from some code that I had to write because the customer demanded such a thing... still can't figure that out but it does work.
Understood about your posting the code... your example is a fine surrogate for that code.
--Jeff Moden
Change is inevitable... Change for the better is not.