I have this query written for Access DB.
queryText = "SELECT Technicians.ID, firstName, lastName, Technicians.[Zone],
COUNT(technicianAssignedId) AS JobsDone,
MAX(Faults.timeCompleted) AS LastJobTime,
MIN(Technicians.[Zone] - & faultZone &) AS Distance ' MIN has no use
FROM Technicians LEFT OUTER JOIN Faults ON
Technicians.ID = Faults.technicianAssignedID
WHERE Specialization = '" & specialization & "'
`AND Availability = 'available'
GROUP BY Technicians.ID, firstName, lastName, Availability,` Technicians.[Zone], Specialization
ORDER BY 7 DESC"
I have this to get absolute value
SELECT CASE
WHEN value < 0 THEN value * -1
ELSE number *1 END
AS VALUE
FROM DB;
Now the column with Distance alias may end up as negative number which I need as positive by using (* -1), but I can't figure out how to put this together.
Thanks for any help