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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CreateControl on current form help

Status
Not open for further replies.

max1mum

Programmer
Jan 8, 2003
37
0
0
US
I am trying to use the CreateControl on a Form. I am creating X Number of Textboxes in the current form based on how many the user wants. I am getting this error:

if i do this

set frm = CreateForm

it works fine

but when i try to define the current form

DoCmd.Close acForm, "frmXXXXXX"
DoCmd.OpenForm "frmXXXXXX", acDesign

then i get this error:

"Could not Find Field 'label10'"


Thanks for looking.


- maximum

Max1mum.
- VBA Programmer
- Studying for MCSD
 
I had that problem a few years ago, and I believe my solution was to save the dialog updates to disk before using the OpenForm method.

Jamie
 
What do you mean by saving the dialog updates?
thanks

- maximum

Max1mum.
- VBA Programmer
- Studying for MCSD
 
Anyone have any examples of how to create a control on a active visible form?


- Maximum

Max1mum.
- VBA Programmer
- Studying for MCSD
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top