stillwillyboy
Technical User
I am trying to achieve the following calculations and have the calc’d numbers appear in my query pane.
Units/HoursWorked = UnitsPerHour ‘appears as desired
PrevailingWage/STD = PieceRate ‘appears as desired
UnitsPerHour/STD = Percent ‘doesn’t work
UnitsPerHour * PieceRate = Pay ‘doesn’t work
How do I adjust the following code to get the calc’d Percent and Pay fields to display?
Also, do you know of any good web sites that cover complex expressions in a simple manner? The books seem to cover the Select, Insert, Update and Delete more than expressions.
TIA,
Bill
Units/HoursWorked = UnitsPerHour ‘appears as desired
PrevailingWage/STD = PieceRate ‘appears as desired
UnitsPerHour/STD = Percent ‘doesn’t work
UnitsPerHour * PieceRate = Pay ‘doesn’t work
How do I adjust the following code to get the calc’d Percent and Pay fields to display?
Code:
SELECT tbl_TEST_TimesheetFile.Units, tbl_TEST_TimesheetFile.HoursWorked,
tbl_TEST_TimesheetFile.Units / tbl_TEST_TimesheetFile.HoursWorked AS UnitsPerHour,
tbl_JobsStepsTable.PrevailingWage,
tbl_JobsStepsTable.GuaranteedStepWage, tbl_JobsStepsTable.Standard AS STD,
tbl_JobsStepsTable.PrevailingWage / tbl_JobsStepsTable.Standard AS PIECERATE
FROM tbl_TEST_TimesheetFile INNER JOIN
tbl_JobsStepsTable ON tbl_TEST_TimesheetFile.CustomerNumber = tbl_JobsStepsTable.CustomerNumber
TIA,
Bill