error "data type mismatch in clriteria expression!"

A

Alla

I am writing a query in Access2002. In one field text data
type was converted to the number, but serching for the
data grater than a particular number (e.g.>100) brings an
error message "data type mismatch in criteria
expression!". It doesn't happen in Access97. Does it have
anything to do with the fact that Access97 and Access2002
were both installed on my PC? Uninstalling Access97 didn't
solve the problem.
 
V

Van T. Dinh

Try type-casting the Field value to the appropriate type for comparison. For
example, you can use something like:

....
WHERE Val([TextFieldMeantToBeNumeric]) > 100
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top