Microsoft
Software
Hardware
Network
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
Cant Change dbo login
VB me.controls function
DoCmd.TransferText acExportDelim, "", "qryStockExport", file, False, "" not working in an adp
Can i promote w2003 member sever with exchange 2007 to domain controller
Debug Assertion Failed...Help
How do I suppress default click behaviour on hyperlink field on form?
How to change excel chart tooltip-text
How many user can work in a Visual Foxpro 9.0 application at the same time
Save file from Attachment type data field
problem with db_mail