A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

add textbox control dynamically at runtime?



 
 
Thread Tools Display Modes
  #1  
Old September 22nd, 2004, 04:33 PM
Matt Landis
external usenet poster
 
Posts: n/a
Default 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  
Old September 22nd, 2004, 04:37 PM
Allen Browne
external usenet poster
 
Posts: n/a
Default

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  
Old September 22nd, 2004, 05:20 PM
Matt Landis
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 12:49 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.