Thanks, I'll try this when I get home.
how could I modify this code if I wanted to open more forms like "A" from the same form.
for example...
If I have a form with four command buttons, each of which opens a different form, and I want the visibility function to run regardless of which form I...