On what line do you get the error message?
>hi all,
>
>any help.
>i get error message(error with pageframe activepage:expression evaluated to an illegal value.
>when i run this code .
>
>if thisform.pageframe1.page1.text2.value="yes"
> thisform.Pageframe1.ActivePage = 6
> thisform.Pageframe1.Page6.Text1.SetFocus()
> endif
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)