Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Option Explicit
Dim LastValue As String
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If LastValue = "S" Then
Me.Surname.BackColor = vbRed
Else
Me.Surname.BackColor = vbWhite
End If
'& "" in case of nulls
LastValue = Me.Surname & ""
End Sub