If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
add textbox control dynamically at runtime?
Hello,
Is it possible to add textbox and/or other controls dynamically at runtime? We are dynamically generating form at runtime based on contents in a table. We currently just add the fields hidden and turn visible on if we want to use them but we thot adding dynamically would be more elegant. Any thots? Thanks, Matt |
#2
|
|||
|
|||
You can CreateControl only if you open the form in design view.
Since most serious applications end up as an MDE where design view is not possible, what you are doing with hidden controls is probably the better approach. -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "Matt Landis" wrote in message ... Is it possible to add textbox and/or other controls dynamically at runtime? We are dynamically generating form at runtime based on contents in a table. We currently just add the fields hidden and turn visible on if we want to use them but we thot adding dynamically would be more elegant. Any thots? Thanks, Matt |
#3
|
|||
|
|||
Thanks Allen, for the 2nd opinion.
Matt "Allen Browne" wrote in message ... You can CreateControl only if you open the form in design view. Since most serious applications end up as an MDE where design view is not possible, what you are doing with hidden controls is probably the better approach. -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "Matt Landis" wrote in message ... Is it possible to add textbox and/or other controls dynamically at runtime? We are dynamically generating form at runtime based on contents in a table. We currently just add the fields hidden and turn visible on if we want to use them but we thot adding dynamically would be more elegant. Any thots? Thanks, Matt |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Access Calendar | lost | General Discussion | 2 | July 7th, 2004 04:58 AM |
How to assign value to a report control? | Peter | General Discussion | 3 | June 29th, 2004 11:17 AM |
Dynamically control how many lines on a graph? | Keith R | Charts and Charting | 2 | October 22nd, 2003 04:19 PM |
Draw text Boxes and Control Box Text Boxes ???? Confused | steve | Worksheet Functions | 0 | September 19th, 2003 03:07 PM |