Joe8915
Registered User.
- Local time
- Today, 02:48
- Joined
- Sep 9, 2002
- Messages
- 820
Can anyone point out where I can correct the overflow error. My thought it has to do with the WV Fix.
This all came about trying to convert a excel formula to access.
I attach the sample of the file from excel. I put it in a word document, but I think you get the idea what I trying to do.
If anyone has a better way or idea on how to do this please show me how.
SELECT TblEmp.Piece, TblEmp.Gross, TblEmp.PerHr, TblEmp.Employee, Sum(TblWorkdescription.DQty) AS SumOfDQty, TblWorkdescription.DRate, Sum(TblWorkdescription.Dadj) AS SumOfDadj, Sum(TblWorkdescription.PQty) AS SumOfPQty, TblWorkdescription.PRate, Sum(TblWorkdescription.Padj) AS SumOfPadj, Sum(TblWorkdescription.WVQty) AS SumOfWVQty, TblWorkdescription.WVRate, Sum(TblWorkdescription.WVhcadj) AS SumOfWVhcadj, Sum(Fix(100*[dqty]*([dstdhc]*[drate]/[dacthc]-[drate]))/100) AS [Summary detail], Sum(Fix(100*[pqty]*([pstdhc]*[prate]/[pacthc]-[prate]))/100) AS [Summary Partial], Sum(Fix(100*[WVqty]*([WVstdhc]*[WVrate]/[WVacthc]-[WVrate]))/100) AS [Summary WV]FROM TblEmp LEFT JOIN TblWorkdescription ON TblEmp.ID = TblWorkdescription.wrkdescp_ID
GROUP BY TblEmp.Piece, TblEmp.Gross, TblEmp.PerHr, TblEmp.Employee, TblWorkdescription.DRate, TblWorkdescription.PRate, TblWorkdescription.WVRate;
To all thanks for taking the time to look at this
This all came about trying to convert a excel formula to access.
I attach the sample of the file from excel. I put it in a word document, but I think you get the idea what I trying to do.
If anyone has a better way or idea on how to do this please show me how.
SELECT TblEmp.Piece, TblEmp.Gross, TblEmp.PerHr, TblEmp.Employee, Sum(TblWorkdescription.DQty) AS SumOfDQty, TblWorkdescription.DRate, Sum(TblWorkdescription.Dadj) AS SumOfDadj, Sum(TblWorkdescription.PQty) AS SumOfPQty, TblWorkdescription.PRate, Sum(TblWorkdescription.Padj) AS SumOfPadj, Sum(TblWorkdescription.WVQty) AS SumOfWVQty, TblWorkdescription.WVRate, Sum(TblWorkdescription.WVhcadj) AS SumOfWVhcadj, Sum(Fix(100*[dqty]*([dstdhc]*[drate]/[dacthc]-[drate]))/100) AS [Summary detail], Sum(Fix(100*[pqty]*([pstdhc]*[prate]/[pacthc]-[prate]))/100) AS [Summary Partial], Sum(Fix(100*[WVqty]*([WVstdhc]*[WVrate]/[WVacthc]-[WVrate]))/100) AS [Summary WV]FROM TblEmp LEFT JOIN TblWorkdescription ON TblEmp.ID = TblWorkdescription.wrkdescp_ID
GROUP BY TblEmp.Piece, TblEmp.Gross, TblEmp.PerHr, TblEmp.Employee, TblWorkdescription.DRate, TblWorkdescription.PRate, TblWorkdescription.WVRate;
To all thanks for taking the time to look at this