Hi there. I'm sure this question has been answered before, but I tried doing a keyword search in all the Access forums and I couldn't find an answer.
I need to be able to reference a control on a form/report by using a variable. How do I do that? What is the correct syntax?
Here's some pseudocode for what I'm picturing:
Dim x as string
x = "txtEmpName"
Me!x.controlsource = "EmpName"
Any help is appreciated. Maq![[americanflag] [americanflag] [americanflag]](/data/assets/smilies/americanflag.gif)
<insert witty signature here>
I need to be able to reference a control on a form/report by using a variable. How do I do that? What is the correct syntax?
Here's some pseudocode for what I'm picturing:
Dim x as string
x = "txtEmpName"
Me!x.controlsource = "EmpName"
Any help is appreciated. Maq
![[americanflag] [americanflag] [americanflag]](/data/assets/smilies/americanflag.gif)
<insert witty signature here>