Thanks, Spud.  Yes, I feel a lot better about it after reading that.  I did briefly investigate table variables via the help; but they're something well beyond any SQL I'd ever done before, and given that I was under a time constraint I didn't feel I could afford to experiment.  And I looked at the CASE statement, but it seems to be used only for multiple-choice operations inside a SELECT.
-- Bob
---------
Then the horns kicked in...
...and my shoes began to squeak.
	
	
	
-- Bob
---------
Then the horns kicked in...
...and my shoes began to squeak.

 
 

 
