Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tring to create a textbox dynamicly

Status
Not open for further replies.

cal555

Programmer
May 5, 2006
71
0
0
US
Hi I have an Access 2003 app that I am building and need to create controls based on what a user selects in a list box. So if the list box has three entries and the the user picks number 2, I need to create teo text boxes. If they pick three then create three boxes. I did this along time agoe but I can not rember what I did fully. can someone please tell me wha tI am missing.
Thank you

Here is what I have so far:
Dim ctlText As Control
Dim intDataX As Single
Dim intDataY As Single

intDataX = 0.375
intDataY = 9.4167
Set ctlText = CreateControl("CONTRACTS", acTextBox, , "", "", intDataX, intDataY)
 


Please post in Microsoft: Access Modules (VBA Coding) forum705.

Skip,
[sub]
[glasses] [red][/red]
[tongue][/sub]
 
ok Butthis si a VBA question and that would be multiple posting, and I would not want to violate tek-tips rules. Unless someone from tek-tips say I could do this.
Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top