I have an application where I want to perform a conversion on a unit of measure during an Access Query. This is an example of some SQL of how I would like to use the function:
I've started building a function to perform this conversion, but I thought I would ask around since I haven't seen a lot on this subject either on the Net or on Bytes.
I'm primarily concerned with converting from one engineering unit to another. Units conversions like these, but not limited to these or by my lack of Imagination:
I will appreciate any input. Thanks -J
Code:
SELECT [ID] , [ExchangerType] , [Capacity] , [CapacityUnitOfMeasure] [iCODE], convertToCurrentUnits([Capacity], [CapacityUnitOfMeasure]) AS CapacityInCurrentUnits[/iCODE] FROM tblHeatExchangerSizingData
I'm primarily concerned with converting from one engineering unit to another. Units conversions like these, but not limited to these or by my lack of Imagination:
- Gallons to Liters
- Liters to Cubic Centimeters
- Cubic Centimeters to Gallons
- Kilowatts to Horsepower
- Horsepower to BTUs
- BTU to Kilowatts
- Fahrenheit to Celsius
I will appreciate any input. Thanks -J
Comment