G
George R
The following code produces the desired count of records when the
[PermitNumber] is <10000. It produces an error "type mismatch in criteria
expression" when [PermitNumber] is 10000 or greater. "most" is determined by
the length of the current Permit Number. Permit Number is a text field.
myCriteria = "Left([PermitNumber]," & most & ") = " & myNum
myCount = DCount("PermitNumber", "Property Master", myCriteria)
I would appreciate any assistance anyone could provide.
Thank you
[PermitNumber] is <10000. It produces an error "type mismatch in criteria
expression" when [PermitNumber] is 10000 or greater. "most" is determined by
the length of the current Permit Number. Permit Number is a text field.
myCriteria = "Left([PermitNumber]," & most & ") = " & myNum
myCount = DCount("PermitNumber", "Property Master", myCriteria)
I would appreciate any assistance anyone could provide.
Thank you