* Requery the list we will use THIS.PARENT.PARENT.PAGE2.C40lstPssRecords.REQUERY() * * Set the active page THISFORM.C40pgEngineerMaint.ACTIVEPAGE = 2Sometimes I put code in the beforerefresh event that checks for certain conditions and depending on the conditions I send them to the page they need. Like:
IF THISFORM.lPromptUser = .F. AND THISFORM.lusermadeinitialchoice = .T. * The user made the initial choice after they have been prompted * So lets set the active page correctly * Once the Active Page is set to 2 we cannot setfocus anymore because IF THISFORM.C40pgItems.ACTIVEPAGE = 1 * They Just came from beeing prompted so we will active the correct page * and set focus THISFORM.C40pgItems.ACTIVEPAGE = 2 THISFORM.C40pgItems.Page2.C40grdItc.SETFOCUS() ENDIF ENDIFIt is just whatever will work for the reason you want to change pages. Sound like you change pages based on KeyPress Event. You may have to have one central place that looks for keystrokes and from there send them to the correct page.