View Full Version : Function to convert fraction (text) to decimal


Clas
02-20-2009, 12:30 PM
Hi.

How to create a function to convert fraction to decimal ?
I am using an updatequery
UPDATE [table] SET [table].[decimalfield] = function fractionfield

Fractionfield is TEXT !
Decimalfield: Number, Precision = 5, Scale = 2, Decimal Places =2


1 1/4 to 1,25
1/2 to 0,50

Thanks!

raskew
02-20-2009, 02:27 PM
Hi -

Take a look here (http://www.accessmonster.com/Uwe/Forum.aspx/access-forms/46536/Converting-a-fraction-to-decimal).

HTH - Bob

Clas
02-21-2009, 01:30 AM
Thank you for help !!