A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how can change the back color of a disabled textbox?



 
 
Thread Tools Display Modes
  #1  
Old August 26th, 2006, 05:46 PM posted to microsoft.public.access.forms
hkgary33 via AccessMonster.com
external usenet poster
 
Posts: 19
Default how can change the back color of a disabled textbox?

Dear all,
In order to prevent the accidental editing of records, I've set all the
textbox controls to Disabled state so that the user can't amend the records
accidentially unless one button is clicked to enable all the textboxes.
However, my colleagues complained that in such way, it's very hard for them
to view the field's data in the textbox, since it's disabled and the color is
very dim. Now, how can I do to change the color of the textbox even if it is
in disabled state?
Or should I use any other method to prevent the accidental editing of records
in textboxes?

Thanks so much!!!
Gary

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200608/1

  #2  
Old August 26th, 2006, 05:54 PM posted to microsoft.public.access.forms
Ken Snell \(MVP\)
external usenet poster
 
Posts: 2,506
Default how can change the back color of a disabled textbox?

Set the Enabled property to No and the Locked property to Yes. That will
remove the "greyed-out" color and leave the textbox looking the same as if
were unlocked and enabled.

Often, when this is done, it's good to change the Special Effect from the
default sunken value to the flat value so that the user knows/sees something
is different about the textbox.
--

Ken Snell
MS ACCESS MVP



"hkgary33 via AccessMonster.com" u23950@uwe wrote in message
news:655a94f4527df@uwe...
Dear all,
In order to prevent the accidental editing of records, I've set all the
textbox controls to Disabled state so that the user can't amend the
records
accidentially unless one button is clicked to enable all the textboxes.
However, my colleagues complained that in such way, it's very hard for
them
to view the field's data in the textbox, since it's disabled and the color
is
very dim. Now, how can I do to change the color of the textbox even if it
is
in disabled state?
Or should I use any other method to prevent the accidental editing of
records
in textboxes?

Thanks so much!!!
Gary

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200608/1



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:53 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.