S
Steven
Is there a way to run a string variable as a line of
code. I am not talking about DoCmd.RunSQL ........ but a
basic line of code.
This issue arrises out of the possible combination of
possibilities and I do not want to catch each item
individually but be able to loop and change a variable and
run some code.
For example:
I want to say:
Dim varStringToRun as String
varStringToRun = "Me.Co" + rs("CoNumberCode") + ".Caption
= '" & rs("Co") & "'"
This might result in:
varStringToRun = "MeCo001.Caption = 'CIS'"
Is there a way to run this varStringToRun like a line of
code that would be the same as saying
MeCo001.Caption = "CIS" on a line of code by itself.
Thank you for your help.
Steven
code. I am not talking about DoCmd.RunSQL ........ but a
basic line of code.
This issue arrises out of the possible combination of
possibilities and I do not want to catch each item
individually but be able to loop and change a variable and
run some code.
For example:
I want to say:
Dim varStringToRun as String
varStringToRun = "Me.Co" + rs("CoNumberCode") + ".Caption
= '" & rs("Co") & "'"
This might result in:
varStringToRun = "MeCo001.Caption = 'CIS'"
Is there a way to run this varStringToRun like a line of
code that would be the same as saying
MeCo001.Caption = "CIS" on a line of code by itself.
Thank you for your help.
Steven