LPARAMETERS m.cToolSet **if no toolset is passed, you are working on the Default header **similarly, the default header has empty toolsets IF !EMPTY(m.cToolset) thisform.ztoolset=ALLTRIM(m.cToolSet) ELSE thisform.zToolSet='' ENDIF LOCAL loCursor *-- Get a reference to the cursor. loCursor = thisform.cmDataManager.getCursor('trpthead') *-- Just in case the order wasn't correctly set on the cursor. loCursor.setOrder('ftoolset') *-- Now, use the cursor's Select method. Way more efficient than a filter. loCursor.Select(thisform.ztoolset) && Or whatever value you want to pass. THISFORM.REQUERY() THISFORM.REFRESH() DODEFAULT()