Rob,
I'd set a form property to the correct control name in the button and then just set the activepage to page2. In the Page Activate() code check the form property and set focus appropriately. It works reliably in a VFP5 app, though I haven't upgraded it to 6 yet.
HTH
Barbara
>VFP 6.0
>
>I have created a multipage form with multiple command buttons on page 1. Depending on the button chosen, I want the user to go to page 2 with the initial focus on different objects. I have been using set focus connands within the click property of the command button which sets the focus to page2 and the object. This works, but not all the time, sometimes it takes them to the exact object, othertimes it just sets the focus to the page... Is there something that I need in the UIEnable code???
>
>Any Ideas..
>TIA
>
>Rob