Since this is two distinct snippets of code, I assume they are within the same logical block? You Dim the object, so OCComboBox needs to be relative to the scope of where it's used.

I usually declare these objects as global so I can access them from other functions (data scopes). Just a thought..

Glenn
_________________________
Actually I am a Rocket Scientist! \:D