JET 4 (the query engine in Access 2000 and later) is less capable of
determining the data type of parameters and calculated expressions than the
older version of JET was.
To avoid the problem, explicitly declare the parameter so Access understands
the data type. For example, if this parameter is in the Criteria row under a
field of type Number (size Long Integer), choose Parameters on the Query
menu, and enter this row into the dialog:
[Type in License Year (2003/2004):] Long
If the query is for criteria of a calculated fields, typecast the
calculation. Details in:
Calculated fields misinterpreted
at:
http://allenbrowne.com/ser-45.html
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"cn" <(E-Mail Removed)> wrote in message
news:76750841-F8FC-488C-9CEC-(E-Mail Removed)...
>I have a data base that was created in Access 97. I am currently using the
> database in Access 2003 and getting an error on a query expression that
> worked in 97. The parameter is: [Type in License Year (2003/2004):] .
> This
> is set as a text box. When the user enters information 2003/2004, an
> error
> message appears with "The expression is typed incorrectly, or it is too
> complex to be evaluated." If I enter the data directly in the query in
> Design View and Run the message is "Data type mismatch in criteria
> expression." All this works in Access 97. What has changed in Access
> 2003?
> What do I change to get this to work in Access 2003?
>
> Thanks for your help.
> CN