N
NJ
I am trying to calculate a form entry where some of the fields values have
'Number' datatype while some have 'Text datatype.
'Number' datatype while some have 'Text datatype.
I am trying to calculate a form entry where some of the fields values have
'Number' datatype while some have 'Text datatype.
John W. Vinson said:You can use the Val() function to convert a text string containing a number to
an actual numeric value: e.g.
Val("123") = 123
Val("35ABC") = 35
But be warned:
Val("ABC123") = 0 (since it's not a leading number)
Val("123E4ABC") = 1230000 (the E4 is interpreted as scientific notation)