Access VBA Return form control value from variable -


i trying return value of form control using below coding, unfortunately error "runtime error 2465, cant find field "forms!frm1!control1 referred in expression".

vartest = "forms!" & screen.activeform.name & "!control1" msgbox controls(vartest).value 

please can can value returned? thanks.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -