Private Sub Ctl_HouseholdMembers_GotFocus()
If (DateDiff("d", Nz(DMax("[DateAttended]", "Dates of Distribution", "[Shampoo] = 'YES'")), Date) >= 28) Then
MsgBox "Entitled to Shampoo"
End If
End Sub
This is the code I am trying to implement.
I call up a client, then enter the number of family...