*& In the MSHFlexGrid Click event. WITH THIS ... .SORT = IIF(.SORT=1, 2, 1) ENDWITHThe problem is that the property Sort is a Write-Only property. The error occurred when I tried to access it. So I created a form level property to hold the Sort Order value and goes from there to solve the problem. Thanks a lot for your help.