I am trying to convert a text field into a function within VBA. For example, I have four fields:
UOM1 = Hours
UOM2 = Seconds
Conversion Calculation = "*60"
Units = 1
I am trying to programatically make the conversion by using the calculation in the field. So, I am trying to make the code say something like:
newUnits = [Units] & [Conversion Calculation] which would translate to:
newUnits = 1*60 which would equal 60
I am sure I could create the correct SQL to do it, but I am trying to do it in VBA code since I may have to do a calculation many times.
Any ideas?
Thanks
UOM1 = Hours
UOM2 = Seconds
Conversion Calculation = "*60"
Units = 1
I am trying to programatically make the conversion by using the calculation in the field. So, I am trying to make the code say something like:
newUnits = [Units] & [Conversion Calculation] which would translate to:
newUnits = 1*60 which would equal 60
I am sure I could create the correct SQL to do it, but I am trying to do it in VBA code since I may have to do a calculation many times.
Any ideas?
Thanks
Comment