if this.parent.parent.activepage = 2 &&We're on Page2 > &&Do normal sutff >endif >Thisform.refresh()Better, change the .Default property of the button as appropriate - set it true in the page's Activate event, and .f. in the page's Deactivate event. this would allow each page to have its own .Default action