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]
 
Top