query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Data Type mismatched in criteria expression error appears. What is wrong
with this query. Please help.

Expr2: IIf(([EData_tbl].[fund]=84),Left([Loan Number],3))
 
Don't know why you're getting a type mismatch - the most obvious thing wrong
is that IIf requires THREE arguments, and you only provide two.
 
In addition to what Ted said, is fund a text field? If it is, you need
quotes around the 84.
 
TedMi said:
Don't know why you're getting a type mismatch - the most obvious thing wrong
is that IIf requires THREE arguments, and you only provide two.


Unlike the VBA function, the IIf function in the expression
service used by the query processor supplies a Null value
for the missing third argument.
 

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

Similar Threads

query 2
IIf Statement Error 3
Compare results of two expressions within query 1
Function containing the wrong number of arguments 5
criteria failure 7
data mismatch 2
query error 3
formula need a fix. HELP! 1

Back
Top