R
Riddick1980
Ive two tables MaterialInward (Master table) and MaterialInwardDetails
(Detail table). I want to make a query to the Master by using the child as
source, like for eg. I want to select records from the master where
Product(FieldName in child) name is like ADAPTERS, but the field Product is
located in child table. Both the tables are joined using MINO primary key
field. I created a query in Access like this:
SELECT MATERIALINWARD.* FROM MATERIALINWARD WHERE MATERIALINWARD.MINO =
(SELECT MATERIALINWARDDETAILS.MINO FROM MATERIALINWARDDETAILS WHERE
MATERIALINWARDDETAILS.PRODUCT LIKE '%ADAPTERS%');
but it returned nothing. Im wondering what to do... Do I need to use
subqueries to achieve this if yes then whatz wrong with the above query
(Detail table). I want to make a query to the Master by using the child as
source, like for eg. I want to select records from the master where
Product(FieldName in child) name is like ADAPTERS, but the field Product is
located in child table. Both the tables are joined using MINO primary key
field. I created a query in Access like this:
SELECT MATERIALINWARD.* FROM MATERIALINWARD WHERE MATERIALINWARD.MINO =
(SELECT MATERIALINWARDDETAILS.MINO FROM MATERIALINWARDDETAILS WHERE
MATERIALINWARDDETAILS.PRODUCT LIKE '%ADAPTERS%');
but it returned nothing. Im wondering what to do... Do I need to use
subqueries to achieve this if yes then whatz wrong with the above query