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 / Forms Programming / March 2007

Tip: Looking for answers? Try searching our database.

changing forecolor

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mccoy - 16 Mar 2007 05:05 GMT
i have a continous form and i put the ff. code on  "on current" event

If Me.combo1.Value = "CASH" Then
Me.textbox1.ForeColor = vbRed
Me.textbox2.ForeColor = vbRed
ElseIf Me.combo1.Value = "CHECK" Then
Me.textbox1.ForeColor = vbBlue
Me.textbox2.ForeColor = vbBlue

the problem is if the first record is set to "CASH" all the said textbox is
color in red
even the second record although it is set to "CHECK". is there a right way
to do this
Allen Browne - 16 Mar 2007 05:47 GMT
Assuming Access 2000 or later, use Conditional Formatting.

It's on the Format menu, in form design view.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

>i have a continous form and i put the ff. code on  "on current" event
>
[quoted text clipped - 10 lines]
> even the second record although it is set to "CHECK". is there a right way
> to do this
 
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.