Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / December 2005

Tip: Looking for answers? Try searching our database.

How do I change format of text fields when enable=false?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
road dog - 06 Dec 2005 18:22 GMT
I have many disabled text fields on my forms. They work fine and don't let
the cursor in, but they are very hard to read. How can I change the
foreground and background properties of my diabled text fields?

Thanks much!
Roger Carlson - 06 Dec 2005 18:38 GMT
Instead of disabling them with the Enabled property, just lock them with the
Locked property.  Then you can change the Backcolor property too.

Signature

--Roger Carlson
 Access Database Samples: www.rogersaccesslibrary.com
 Want answers to your Access questions in your Email?
 Free subscription:
 http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L

> I have many disabled text fields on my forms. They work fine and don't let
> the cursor in, but they are very hard to read. How can I change the
> foreground and background properties of my diabled text fields?
>
> Thanks much!
Klatuu - 06 Dec 2005 18:41 GMT
You are probably using the Enabled property of the text box set to No.  This
greys the control out and makes it hard to read.  Instead, use the Locked
property set to Yes.  The control appears normal, but cannot be changed.  The
only difference is that the Tab will position the cursor in the text box.  If
you want the Tab to bypass the control, set the Tab property to No.

> I have many disabled text fields on my forms. They work fine and don't let
> the cursor in, but they are very hard to read. How can I change the
> foreground and background properties of my diabled text fields?
>
> Thanks much!
John Spencer - 06 Dec 2005 18:49 GMT
Alternatively, set BOTH.properties.
Set Enabled to False (No)
Set Locked to True (Yes)

> You are probably using the Enabled property of the text box set to No.
> This
[quoted text clipped - 11 lines]
>>
>> Thanks much!
Klatuu - 06 Dec 2005 19:09 GMT
I believe I covered that, but not as explicitly as you did:

Instead, use the Locked
property set to Yes

> Alternatively, set BOTH.properties.
> Set Enabled to False (No)
[quoted text clipped - 15 lines]
> >>
> >> Thanks much!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.