Variable name in string variable

E

Erik Schweighofer

Is it possible to access a variable with name in another variable?

vara="varb"

How to access the value of varb?

Thanks

Erik
 
P

Peter

I don't think it's possible.
Access has the Eval() function, but I don't think it will return the value of a variable. It's supposed to be able to return the value of a function, but in playing around with it I haven't been able to get it to do that. I always get RTE 91.
Consider using a Collection or array.

-Peter
 
T

Tushar Mehta

I don't believe that's possible. Maybe, if you explain the broader
scope in which you want to do this, someone may be able to suggest an
alternative.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top