M
mpjm
thanks - i'll look into what you mentioned and let you know how it
turned out. there could be errors in data entry because the original DB
was not set up to perform error/validity checking
turned out. there could be errors in data entry because the original DB
was not set up to perform error/validity checking
Marshall said:I don't see how the CInt can cause that error and "work" at
the same time. AFAIK, CInt will only generate that error if
the string it's trying to convert has a non-numeric
character in it. Double check your data in the report's
record source to see if there is an invalid entry. If the
table has a significant number of records, you might want to
use a query to look for invalid entries in this field:
SELECT *
FROM [put name of your table here]
WHERE prop_name LIKE "*[!1-9]*"
--
Marsh
MVP [MS Access]
i get the error "data type mismatch" which could mean that we're using
the wrong function (CInt) - any other one you know of that will work
for text fields?
that piece of code works, just i get a data type mismatch