My search criteria is simply a single space, hence no division necessary at
the end but noted for future use.
If the following is added an an expression in Field:
Expr1:Len([foo])-Len(Replace([foo]," ",""))
the results are 100% accurate, showing the number of spaces in [foo] for
each record.
If, however, it is added as a condition:
Len([foo])-Len(Replace([foo]," ",""))>"1"
I get a "Data type mismatch in criteria expression" error and no records are
returned save for the usual "#Name?" error.
To troubleshoot, I tried Len([foo])>"1" by itself and all of the records
whose length is greater than 1 returned as expected.
Interestingly, though, Len(Replace([Doctor]," ",""))="1" resulted in the
aforementioned error and returned no results.
Any ideas? I've tried Val(Len(Replace...) to no avail.