Thanks for the suggestions. Jacob's came closest to what I needed to do, and I was able to modify his sample to resolve my question.

Cheers,
James