Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 1 / September 2005

Tip: Looking for answers? Try searching our database.

running vba code in a loop

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ken - 30 Sep 2005 00:14 GMT
Hi,
Can I run vba code from a string?

Stuff like Field1.ControlSource = "Documents"

Its sort of similar to running an sql...but not.
Tom van Stiphout - 30 Sep 2005 05:19 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.