ThisForm.currentpage = what_ever_the_actual_page_number_is
I follow that with code which evalutes the users right to access the selected tab:IF ThisForm.exemptemp ThisForm.currentpage = 5 ThisForm.LockScreen = .T. ...any desired code here ThisForm.LockScreen = .F. ELSE * user denied access... return them to page they were on This.Parent.activepage = ThisForm.currentPage * the tab merely appears to be inactive. You can flash a msg or ... ENDIFHTH,