set text box run time

I

iccsi

I would like to set the unbound text of text box at run time like
following:

txtMyText = "My String"

I got error message that can not assign text at run time.
I can set label caption at run time if I change it to label.
Because I need can grow property of text box, I can not use lable
controls.

Are there any solutions for this?


Your help is great appreciated,
 
M

Marshall Barton

iccsi said:
I would like to set the unbound text of text box at run time like
following:

txtMyText = "My String"

I got error message that can not assign text at run time.
I can set label caption at run time if I change it to label.
Because I need can grow property of text box, I can not use lable
controls.


If the text box is in a form, move the code from the Open
event to the Load event.

If it's in a report, move it to the Format event of the
section that contains the text box.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top