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!

Access Form- Runtime error 2185

Status
Not open for further replies.

csk003

Programmer
Feb 9, 2004
26
0
0
US
I created a form in Access 2003
added a command button and text box
In the click event o f command button
Textbox1.text= "testing"

I get a runtime error 2185
you can't reference a propoerty or method of control unless the control has the focus

I added textbox1.setfocus in the click button. It works now but i don't think I needed to add it before.
Any suggestions?

(I tried adding me.Textbox1.text= "testing". This didn't work)

 
How are ya csk003 . . .

You wanted:
Code:
[blue]   Me!Textbox1 = "testing"[/blue]

Calvin.gif
See Ya! . . . . . .
 
Thank you, must have been using value or VB before
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top