I have a subroutine in the query save event that counts among other thing Vacation Days. My problem is that the field “Code” where the user indicates Vacation Day or Sick Day or other is a multivalue field by design.
When the user enters VAC for vacation my count worrk but when they enter VAC and Asked Off together my count doesn’t pick either up.
I need some sort of “contains” but I can’t figure out how this is done.
Any ideas?
example code
'vacation count
If code_1 = "VAC" Then
x = x +1
End If
If code_2 = "VAC" Then
x = x +1
End If
If code_3 = "VAC" Then
x = x +1
End If
If code_4 = "VAC" Then
x = x +1
End If
If code_5 = "VAC" Then
x = x +1
End If
If code_6 = "VAC" Then
x = x +1
End If
If code_7 = "VAC" Then
x = x +1
End If
Call cdoc.fieldsettext(“TotalVacation”, Cstr(x))