Result of an expression

LTeu 1 Reputation point
2022-09-01T08:30:28.997+00:00

i have the follow in Access vba
a=3
b="+"
c=2

I want 5 as result for ? a & b & c in stead of "3 + 2"
How can i do this?

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Viorel 111.5K Reputation points
    2022-09-01T08:45:00.1+00:00

    Try ? Eval(a & b & c). The long form is ? Application.Eval(a & b & c).

    0 comments No comments