Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ms access 2010 筛选小计的访问报告_Ms Access 2010 - Fatal编程技术网

Ms access 2010 筛选小计的访问报告

Ms access 2010 筛选小计的访问报告,ms-access-2010,Ms Access 2010,我想根据超过30的实际加班小计筛选我的报告。我怎么做 以下是对SQL Server的直通查询: SELECT OT_Entry.App_ID AS OT_Entry_App_ID , OT_Entry.EmpID , OT_Entry.EmpName , OT_Entry.[Pre-Approved_OT] , OT_Entry.Actual_OT , tblMain.App_ID AS tblMain_App_ID , tblMain.Start_Date , tblMain.End_Date

我想根据超过30的实际加班小计筛选我的报告。我怎么做

以下是对SQL Server的直通查询:

SELECT OT_Entry.App_ID AS OT_Entry_App_ID
, OT_Entry.EmpID
, OT_Entry.EmpName
, OT_Entry.[Pre-Approved_OT]
, OT_Entry.Actual_OT
, tblMain.App_ID AS tblMain_App_ID
, tblMain.Start_Date
, tblMain.End_Date
, tblMain.WO_Number
, tblMain.Plant_Section
, tblMain.Job_Category
, tblMain.[Maint_Area/Section]
, tblMain.[Group/Discipline]
, tblMain.Break_In
, tblMain.Requestor
, tblMain.Justification
, tblMain.Work_Activity
, tblMain.Approver
, tblMain.Request_Date
, EmpData.Position
, EmpData.Reporting_to
, EmpData.Company
, EmpData.Personnel_Type
, EmpData.Group
FROM EmpData INNER JOIN (tblMain INNER JOIN OT_Entry ON tblMain.[App_ID] = OT_Entry.[App_ID]) ON EmpData.EmpID = OT_Entry.EmpID;
下面是我报告的截图


在SQL末尾添加一个“where”子句:“where(OT_Entry.Actual_OT>30)”将其绑定,但它对我不起作用,我所做的是使用员工ID对加班条目进行分组,因此相同ID下的所有加班条目将通过小计进行汇总。由于这是一个小计,报告将不允许我过滤,甚至排序。使用select查询还有其他解决方法吗?谢谢创建一个新的查询,在其中按empid分组,求和日期范围上的小时数和where子句。将该查询添加到现有查询中,加入empid,并保留总和。每个细节记录现在都有总计。