469,613 Members | 2,198 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,613 developers. It's quick & easy.

running vba code in a loop

ken
Hi,
Can I run vba code from a string?

Stuff like Field1.ControlSource = "Documents"

Its sort of similar to running an sql...but not.

Nov 13 '05 #1
1 1166
On 29 Sep 2005 16:14:27 -0700, "ken" <ge****@gmail.com> wrote:

If I understand you correctly, check out the Eval function in the Help
file:
Debug,Print Eval("3+4")
7

Debug.Print Eval("Field1.ControlSource = 'Documents'")
False

If rather, your intention is to set the ControlSource to "Documents",
then a simple:
Field1.ControlSource = "Documents"
will do.

-Tom.

Hi,
Can I run vba code from a string?

Stuff like Field1.ControlSource = "Documents"

Its sort of similar to running an sql...but not.


Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by lawrence | last post: by
1 post views Thread by noise | last post: by
1 post views Thread by Richard A. DeVenezia | last post: by
9 posts views Thread by mareal | last post: by
14 posts views Thread by William LaMartin | last post: by
4 posts views Thread by commander_coder | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.