oXtab = newobject("FastXtab", "FastXtab.prg") oXtab.lCursorOnly = .t. oXtab.lBrowseAfter = .f. && Don't show oXtab.lTotalRows = .t. && Specifies whether to total rows in the cross tab output oXtab.nTotalOption = 1 && Totaling options (0-sum, 1-count, 2-% of total). oXtab.RunXtab() if used('xTabQuery')>I have set the lCursorOnly to .T., but still run into this error :"...Group by substatement is unvalid..."