DanaGarcia,
I don't want to complicate matters and detract from the Original askers question.
But you are saying that my code errors out and you are posting the message, but you are not posting the actual code that you used that failed, so this is difficult to troubleshoot.
The basic concept is contained in the attached sample.
If you have any questions, feel free to email me.
;-)
JeffCoachman