How can i Disable a Textbox or Combobox in Runtime

G

Guest

From a combo box Before_Update Event I want to disable some textbox and combo
box.
I wrote the code Like
Mytxtbox.Enabled = false
Mycombo.Enabled = false
But it is showing a error "You can't disable a control while its having the
focus"

so how can i disable that field?
anybody can help me..?
Thanks in advance..
 

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