Toggling data fields enabled / not enabled

G

Guest

I have a form that is a bit confusing to me.

I allow users to select an existing Account from a combo box or enter a new
account data (Name, Address, Phone etc.) in the text boxes below the combo
box. If the users select an account from the combo box, I populate the
account entry fields with the known account data and set them enabled =
false. This grays out the entry fields but does show the data for the
selected account.

All works well EXCEPT from time to time the entry fields do not get grayed
out as you would expect when you make a control.enabled = false. The fields
ACT as they are disabled meaning you can’t make changes or even set the focus
on these fields. But visually they don’t look disabled.

I have tried repaint and doevents afterwards and it doesn’t help.

Any thoughts?
 
G

Guest

This seems to be a minor bug in Access 2003. I tried it on a few different
platforms but all have the same problem. I changed the code to toggle
..locked, .tabstop and .backcolor instead of .enabled and all works fine.
 

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