Good Day!!!
Is it somehow possible to retrieve a string and then convert it into a mathematical expression? for example i have this string '14200 * 5' and then i want to convert this into a mathematical formula so that i could get the result of it which is 71000
Thanks....
The Function
EVAL is what you need to look at ie:
ie: myvalue=Eval('14200*5')
assigns the value 71000 to the variable myvalue in vba code
you can also use the Eval function in SQL
ie: SELECT Eval('14200*5') AS Blah;
will return you a single column called blah in which contains a single row value of 71000
There are obviously any number of ways you may wish to use the return value either in SQL or VBA code
Regards
Jim