Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BackColor

Status
Not open for further replies.

matrixindicator

IS-IT--Management
Sep 6, 2007
418
BE
Hello,

I can't let work the code.
He said on BackColor property not found or working.
Is it a version matter (access 2003)

thanks, pat.

Code:
Private Sub Ctl30YN_AfterUpdate()

If Me.Ctl30YN.Value = True Then
   
   Me.[30CLOSE].BackColor = RGB(63, 200, 55)  'Green
   Me.[30CLOSE] = date()
   Else

End If
End Sub
 
Is 30CLOSE a textbox? Does vbGreen instead of RGB(63, 200, 55) work?
 
[30CLOSE] is a textbox depending on a field.

If this won't work....

I tried conditional formatting in the menu and this works to color, date() function works.

 
I am not sure whether or not you have resolved this problem? It seems you are using a continuous form, if so, conditional formatting is the way to go.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top