L
LMB
Hello,
I created an expression in a query in access 2000.
RoadBlockHours: [SumOfNumMinsPerRdBlk]/60
I have 2 problems when I run the query.
First problem is I get a pop up window with this in it.
Enter Parameter Value
SumOfNumMinsPerRdBlk
If I hit the enter key, the query runs
Second is....
If the SumOfNumMinsPerRdBlk is 35, I get this number in return
0.583333333333333. How do I limit it to just 2 decimal places?
Here is the sql. I don't work in the sql view so if you could post the
answer so I can use the query grid that would be great.........Thanks, Linda
SELECT tblEmpPostShiftRoadBlocks.WkAreaID, qryWorkAreaList.WorkAreaName,
Sum(tblEmpPostShiftRoadBlocks.NumMinsPerRdBlk) AS SumOfNumMinsPerRdBlk,
[SumOfNumMinsPerRdBlk]/60 AS RoadBlockHours
FROM tblEmpPostShiftRoadBlocks INNER JOIN qryWorkAreaList ON
tblEmpPostShiftRoadBlocks.WkAreaID = qryWorkAreaList.WorkAreaID
GROUP BY tblEmpPostShiftRoadBlocks.WkAreaID, qryWorkAreaList.WorkAreaName,
[SumOfNumMinsPerRdBlk]/60
ORDER BY tblEmpPostShiftRoadBlocks.WkAreaID;
I created an expression in a query in access 2000.
RoadBlockHours: [SumOfNumMinsPerRdBlk]/60
I have 2 problems when I run the query.
First problem is I get a pop up window with this in it.
Enter Parameter Value
SumOfNumMinsPerRdBlk
If I hit the enter key, the query runs
Second is....
If the SumOfNumMinsPerRdBlk is 35, I get this number in return
0.583333333333333. How do I limit it to just 2 decimal places?
Here is the sql. I don't work in the sql view so if you could post the
answer so I can use the query grid that would be great.........Thanks, Linda
SELECT tblEmpPostShiftRoadBlocks.WkAreaID, qryWorkAreaList.WorkAreaName,
Sum(tblEmpPostShiftRoadBlocks.NumMinsPerRdBlk) AS SumOfNumMinsPerRdBlk,
[SumOfNumMinsPerRdBlk]/60 AS RoadBlockHours
FROM tblEmpPostShiftRoadBlocks INNER JOIN qryWorkAreaList ON
tblEmpPostShiftRoadBlocks.WkAreaID = qryWorkAreaList.WorkAreaID
GROUP BY tblEmpPostShiftRoadBlocks.WkAreaID, qryWorkAreaList.WorkAreaName,
[SumOfNumMinsPerRdBlk]/60
ORDER BY tblEmpPostShiftRoadBlocks.WkAreaID;