Techware Labs Header

Forums have moved

See this announcement for more details, or just go directly there.

Prev Previous Post   Next Post Next
  #1  
Old 04-26-2002, 09:26 AM
Propig
 
Posts: n/a
Default Any Access or VB Experts

I am able to create and populate controls based on a recordset. But when you open the form in datasheet view the Column headers show as Text0, Text1, etc.

Can I specify the name of the textbox at the time I create it? I would like the name of the textbox be fld.name

Here is my code


   For Each fld In frst.Fields
       
       Set ctlText = CreateControl("frmname", acTextBox, , , fld.Name)

   Next

Yes, I could create labels for the text boxes, but then I have to also place them in the correct spot on the form. Since the fields that are shown on the form can be as few as two or up to 10 or more and they can vary greatly in size, I do not think this is the best option.

If anyone knows a better way of doing this I am all ears! Thanks in advance for any assitance.
Reply With Quote
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:11 AM. Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum style by ForumMonkeys.