I don't see what making your vars global would accomplish. Are you still getting the same error (1722)? What code are using now?
_________________________
Eric