IgnoreCase vba code example
Example: vba ignore case
'Removes case sensitivity
Option Compare Text ' a < B
'Adds case sensitivity
Option Compare Binary ' A < B < a < b
'Compare
Debug.Print StrComp(string1, string2, vbUseCompareOption) 'Microsoft Access only
Debug.Print StrComp(string1, string2, vbBinaryCompare) 'case sensitive
Debug.Print StrComp(string1, string2, vbTextCompare) 'case insensitive