Home > Microsoft Access Help > Conditional formatting

Conditional formatting



How can I use conditional formatting to have a field change background colors if it is populated or stays white if left blank. Do I use field value, field has focus or expression.

    
Guest


You can use Event Procedure "On Current" by



Private Sub Form_Current()

If IsNull(Text0) Then

Me.Text0.BackColor = 16777215 'White

Else

Me.Text0.BackColor = 255 'Red

End If

End Sub

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2008 by Infoqu. All rights reserved