1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
Dim ancien_service As String
Private Function PreviousValue()
Me.RecordsetClone.Bookmark = Me.Bookmark
Me.RecordsetClone.MovePrevious
PreviousValue = Me.RecordsetClone!Service_contact
End Function
Private Sub CONTACT_Sous_formulaire_Enter()
Dim i As Integer
For i = 0 To Me.Service_contact.FormatConditions.Count - 1
Me.Service_contact.FormatConditions(0).Delete
Next
ancien_service = PreviousValue()
With Me.Service_contact.FormatConditions.Add(acExpression, , "[service_contact] = [ancien_service]")
.BackColor = Me.Service_contact.BackColor
.ForeColor = Me.Service_contact.BackColor
End With
End Sub |
Partager