M
magmike
I have my form set to continuous and have designed the form to look
like a datasheet when there are multiple records. I have the update
event of one of the fields set to change the look of fields based on
the value entered, however, this changes all the rows/records on the
form to the suggested color.
How do I set this just to change the properties of the fields within
the record within that value?
My code:
Private Sub Status_AfterUpdate()
If IsNull(FirstContactDate.Value) Then
FirstContactDate.Value = Date
End If
LastChangeDate.Value = Date
If Me.Status = 54 Then
Me.QuoteReqDate.Value = Date
Me.Address.BackStyle = 1
Me.Address.BackColor = 5615452
Me.Status.BackStyle = 1
Me.Status.BackColor = 515452
Else
Me.Status.BackStyle = 0
Me.Address.BackStyle = 0
End If
End Sub
magmike
like a datasheet when there are multiple records. I have the update
event of one of the fields set to change the look of fields based on
the value entered, however, this changes all the rows/records on the
form to the suggested color.
How do I set this just to change the properties of the fields within
the record within that value?
My code:
Private Sub Status_AfterUpdate()
If IsNull(FirstContactDate.Value) Then
FirstContactDate.Value = Date
End If
LastChangeDate.Value = Date
If Me.Status = 54 Then
Me.QuoteReqDate.Value = Date
Me.Address.BackStyle = 1
Me.Address.BackColor = 5615452
Me.Status.BackStyle = 1
Me.Status.BackColor = 515452
Else
Me.Status.BackStyle = 0
Me.Address.BackStyle = 0
End If
End Sub
magmike