Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data type mismatch

Status
Not open for further replies.

Aximboy

Technical User
Aug 3, 2003
63
US
I have a query. In one of the fields I have this expression…

Expr1: IIf(InStr([FieldName],"(")=0,[ FieldName],Left([FieldName],InStr([FieldName],"(")-1))

Then on the criteria, I have…

Like [Forms]![FormName]![txtFieldName]

But when I run it I get an error “Data type mismatch in criteria expression.”
The FieldName is set to String as data type.
How do I get around this problem. Please help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top