text box back color on a continous form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • favor08
    New Member
    • Jan 2007
    • 56

    text box back color on a continous form

    Can I have a text box on a continous form called txty9 and say where the value is null make the backcolor = 16777215 esle make it 255.

    I put this but the color stays white even when a item is enter in that field for a particular line.

    So now I have 2 lines that have a value in txty9 but 11 are null. So 2 should be read and 11 should show white.


    Code:
    Private Sub Form_Load()
      If IsNull(Me.txtDone) Then
        Me.txtDone.BackColor = 16777215
      Else
        Me.txtDone.BackColor = 255
      End If
    End Sub
    Last edited by NeoPa; Feb 10 '07, 07:03 PM. Reason: Tags for Layout
  • nico5038
    Recognized Expert Specialist
    • Nov 2006
    • 3080

    #2
    Continous forms have a will of their own.
    Best to use the Conditional Formatting option from the Format menu.

    Nic;o)

    Comment

    • favor08
      New Member
      • Jan 2007
      • 56

      #3
      Originally posted by nico5038
      Continous forms have a will of their own.
      Best to use the Conditional Formatting option from the Format menu.

      Nic;o)
      it only seems to read the first line.

      Comment

      • nico5038
        Recognized Expert Specialist
        • Nov 2006
        • 3080

        #4
        Conditional formatting will process all rows.
        What are you using ?

        Nic;o)

        Comment

        Working...