In the attached example I have a modeless xdialog based upon a browse layout. My problem is the code to enable the next and previous buttons with the resulting variables being updated accordingly. The code only works for the present week . Not the day names are buttons which replace the browse query in the grid.