When Load Form - update textbox

T

Tim McGavin

I would like for my textbox to update when my form loads.

I tried the following code, but my textbox just stays blank.

Private Sub Form_Load()
Text0.Text = "hello"
End Sub

Any ideas?
 
B

Beetle

I would like for my textbox to update when my form loads.

I tried the following code, but my textbox just stays blank.

Private Sub Form_Load()
Text0.Text = "hello"
End Sub

Any ideas?

Try this

Text0.Value = "hello"
 
J

John W. Vinson

I would like for my textbox to update when my form loads.

I tried the following code, but my textbox just stays blank.

Private Sub Form_Load()
Text0.Text = "hello"
End Sub

Any ideas?

As noted in the other thread, Me!Text0 = "hello" works.

John W. Vinson [MVP]
 

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

Similar Threads


Top