Question : How I restrict query results to fields of a certain length?

I am running a query and want to restrict the results to those records where the TaxPayer ID field is exactly 9 digits long.  I tried putting len([TaxID])=9 in the criteria field, but it keeps changing it to "len([TaxID])="9" (with quotes) when I tab out of the field.

Any idea why?

Answer : How I restrict query results to fields of a certain length?

Oh, sorry.  

Field row: IIf([TIN]="" Or IsNull([TIN]),0,Len([TIN]))

Criteria row: 9

Random Solutions  
 
programming4us programming4us