Question : Disable all controls on Subform

Hi All,

I have a form containing a subform with 3 enabled textboxes and a few others that are always disabled. No other controls or buttons on the subform. Front-end is access 2000 project. Back-end SQL Server 2000.

based on certain processing, i need to disable all 3 textboxes in the subform. when i do that i get a message "can't disable control that has focus". i tried setting the focus to controls on the parent form but i still get the same error message. the obvious question would be to disable the subform itself. that works, but visually not pleasent since the controls "look" as if they're still enabled. Changing the look (Colour, font..etc) of the textboxes themselves to look like disabled is not feasible since users with different desktop themes will notice the trick. Any ideas?

your help is greatly appreciated.

Terry

Answer : Disable all controls on Subform

create a dummy control on the subform and size it to be un-noticeable
set the focus to the dummy control before disabling the the textboxes.
Random Solutions  
 
programming4us programming4us