• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 428
  • Last Modified:

You can't reference a property or method for a control unless the control has the focus.

hi

I keep getting the following error when using VBA.
"You can't reference a property or method for a control unless the control has the focus."

It happens when i'm taking or putting information into a textbox.

Any ideas how i can solve it.
0
rebel_vb
Asked:
rebel_vb
  • 2
1 Solution
 
Mayank SAssociate Director - Product EngineeringCommented:
Shouldn't happen while using the Text property of text-box.... can you please post a part of your code?

Mayank.
0
 
rebel_vbAuthor Commented:
Cheers just fixed,used text property, stupid mistake.

Thanks
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Do I get any points for this :-)

Mayank.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now