August 11, 200124 yr When user selects "Cancel" during a find, how can user be directed to a different layout than the one used for the find? I tried the following, but get bumped back to Layout 1 when Cancel button is hit: Go to Layout [Layout 1] Set Error Capture [On] Enter Find Mode [Pause] Perform Find[] If ["Status(CurrentError)=1"] Go to Layout [Layout 2] Else ......... carry on with find Endif
August 11, 200124 yr This will work for you I think Browse Mode Go to Layout [ Layout #1 ] Set Error Capture [ On ] Loop Enter Find Mode [ Pause ] Perform Find If [ Status( CurrentError) = 401 ] Show Message [ Buttons: "Modify Find", "Cancel", ""; Data: "No Records Found" ] If [ Status( CurrentMessageChoice) = 2 ] Go to Layout [ Layout #2 ] Exit Script End If End If End Loop
Create an account or sign in to comment