M
mike
Hi all,
I'm trying to create a text box programmatically andI'm
having trouble.
In Form1(the name of my form), I have a command button.
When the command button is click. It automatically create
a text box within the form. But I'm getting error.
Here is the code.
Dim ctr As Control
Set ctr = CreateControl(Form1, acTextBox, acDetail)
The error is: Access can't find the form name refer. The
form name is Form1 which I have provided.Any suggetion on
what I did wrong?
thanks for the help.
mike
I'm trying to create a text box programmatically andI'm
having trouble.
In Form1(the name of my form), I have a command button.
When the command button is click. It automatically create
a text box within the form. But I'm getting error.
Here is the code.
Dim ctr As Control
Set ctr = CreateControl(Form1, acTextBox, acDetail)
The error is: Access can't find the form name refer. The
form name is Form1 which I have provided.Any suggetion on
what I did wrong?
thanks for the help.
mike