I cannot seem to get this code to work. I've tried OR instead of AND. Am I using the parentheses incorrectly?
If Me.UBLCombo = "MarriedChildren" And (Me.Primary1Relationship <> "Spouse" And Me.Primary1Relationship <> "Child" And Me.Primary1Relationship <> "Stepchild")
Then
Me.Primary1UB = -1
Me.SpouseLetter = -1
Else
Me.Primary1UB = 0
If Me.UBLCombo = "MarriedChildren" And (Me.Primary1Relationship <> "Spouse" And Me.Primary1Relationship <> "Child" And Me.Primary1Relationship <> "Stepchild")
Then
Me.Primary1UB = -1
Me.SpouseLetter = -1
Else
Me.Primary1UB = 0