ClearSubtotal() And ShowAllRows() And if([%使用配件名称%]>"",FilterFor("使用配件名称","=",[%使用配件名称%]),True) And if([%数量%]>"",FilterFor("数量","=",[%数量%]),True) And if(text([%开始日期%])>"",FilterFor("日期",">=",[%开始日期%]),True) And if(text([%结束日期%])>"",FilterFor("日期","<=",[%结束日期%]),True) And Subtotal("","数量",2)