![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
What is the code to create a list of the controls on a closed form in the current database? Thanks! Steve |
#3
| |||
| |||
|
|
On Sat, 11 Oct 2008 17:52:16 -0400, "Steve" <nonsense (AT) nomsense (DOT) com wrote: There is no easy way to do that. -Tom. Microsoft Access MVP What is the code to create a list of the controls on a closed form in the current database? Thanks! Steve |
#4
| |||
| |||
|
|
Thanks for responding, Tom! What is the hard way? |
#5
| |||
| |||
|
|
"Steve" <nonsense (AT) nomsense (DOT) com> wrote: Thanks for responding, Tom! What is the hard way? You open the form in design view. However that only works for MDBs. You can see Rick Fisher's Find and Replace work this way. Tony -- Tony Toews, Microsoft Access MVP Please respond only in the newsgroups so that others can read the entire thread of messages. Microsoft Access Links, Hints, Tips & Accounting Systems at http://www.granite.ab.ca/accsmstr.htm Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/ |
#6
| |||
| |||
|
|
Thanks for responding, Tony! What is the code for getting the list of the controls once you have the form open in design view? You can't use: For each Ctl In Forms("MyForm").Controls because the Forms collection doesn't exist when no forms are open. Further, If whatever you know works for MDBs, does it work for ACCDBs? Steve "Tony Toews [MVP]" <ttoews (AT) telusplanet (DOT) net> wrote in message news:t3i2f4tbb907tf5jqhhg7luf9i9qbanmh2 (AT) 4ax (DOT) com... "Steve" <nonsense (AT) nomsense (DOT) com> wrote: Thanks for responding, Tom! What is the hard way? You open the form in design view. However that only works for MDBs. You can see Rick Fisher's Find and Replace work this way. Tony -- Tony Toews, Microsoft Access MVP Please respond only in the newsgroups so that others can read the entire thread of messages. Microsoft Access Links, Hints, Tips & Accounting Systems at http://www.granite.ab.ca/accsmstr.htm Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/ |
#7
| |||
| |||
|
|
What is the code to create a list of the controls on a closed form in the current database? Thanks! Steve |
#8
| |||
| |||
|
|
What is the code to create a list of the controls on a closed form in the current database? Thanks! Steve |
#9
| |||
| |||
|
|
What is the code to create a list of the controls on a closed form in the current database? Thanks! Steve |
#10
| |||
| |||
|
|
If you were to open the form from a program, but set it as hidden, then you would be able to get an object with a collection of all the controls. Once you have gotten from that what you want (made a list, whatever) you could close the form? |
![]() |
| Thread Tools | |
| Display Modes | |
| |