*snip*
> I'm tired from getting no sleep (broke up with gf),
My sympathies.
but hopefully I didn't miss something here. You are testing to see if the ActiveForm is an Object. But if not you go ahead and look for the Parent as ActiveForm was an Object. Are you sure it was what you had in mind?
I told you YMMV. The ELSE code was more for a failure in BaseClass part of the check. If _Screen.ActiveForm is not an object at all (i.e. no forms instantiated) then it fails miserably {
BOOM!!!!}. You can add another IF...ENDIF with the object checking and remove that criteria from the inner IF...ENDIF.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao