I'm running a make table query that is converting my numeric data into text and I need it to remain numeric. The two input numeric fields are set to Number/Double.
USE_Number: Switch(Not IsNull([NumericField1]),[NumericField1]*0.1,Not IsNull([NumericField2]),[NumericField2]*0.001)
This is giving me the correct results, Nulls where neither number is available, and the correct math where the number is available, but unfortunately results in a text field.
I tried adding CDbl, and this results in a numeric field but where neither Number is available the result is #ERROR and I need it to be Null
USE_Number: Round(CDbl(Switch(Not IsNull([NumericField1]),[NumericField1]*0.1,Not IsNull([NumericField2]),[NumericField2]*0.001)),2)
Any help on this would be really appreciated! Thanks!