I have an İssue about using SQL statments with a table in which there is look-up column.
Code:
SELECT Supp_Name,Supp_Company FROM Supplier WHERE Supp_Name="ATK"
This code working very well. It retrieves Supplier names and Supplier Company names that supplier names are ATK.
But;
Code:
SELECT Supp_Name,Supp_Company FROM Supplier WHERE Supp_Company="ATK"
If I run this code; I got the error message that states "Data type mismatch in criteria expression".
By the way; Supp_Company field is a look-up coloumn that retrieves the data from Comp_name field in Company table.
Is it impossibe to use lookup-coloums in WHERE statement ?
(Access 2007 sql query - not SQL server)
Thanks for your help and interest ?