CPU,
Correct me if I'm wrong, but your way forces the system to go through every form and check it's object state from the msys tables. My way looks at the forms collection so it only looks at forms that are open, so this method is faster, because it will almost always have fewer forms to inspect that yours.
Joe Miller
joe.miller@flotech.net