>If val(sys(21))>0 > lcDescending = iif(descending(val(sys(21)),'myAlias'), ; > ' ASCENDING ',' DESCENDING ') > Set order to tag (order('myAlias')) &lcDescending >endif >Please review this KB Article http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q165410 before using this technique. If you're depending on buffering and using a grid, this bug has the nasty side effect of not respecting the buffering let alone the data session.