D
dk
Hi.
I have created a 'right join' query, taking info from two
related tables (one main table and another used for a
subform).
The query is executed after entering a 'Last Name':
SELECT tblGrass.Primary, ..., tblsubfrmGrass.TY, ... FROM
tblsubfrmGrass RIGHT JOIN tblGrass ON tblsubfrmGrass.TY =
tblGrass.Primary
WHERE (((tblGrass.Primary)=[Enter Name])) OR
(((tblsubfrmGrass.TY)=[Enter Name]));
This right join only produces results where the 'Name'
exists in tblGrass, when I want the same Name from the
tblsubfrmGrass to be displayed as well. I can't figure
out how to display info from both the form and the subform
regardless if the join fields are equal or not, or if
the 'Name' only appears on one table and not the other
table.
Any tips on how to correct my query?
TIA,
dk
I have created a 'right join' query, taking info from two
related tables (one main table and another used for a
subform).
The query is executed after entering a 'Last Name':
SELECT tblGrass.Primary, ..., tblsubfrmGrass.TY, ... FROM
tblsubfrmGrass RIGHT JOIN tblGrass ON tblsubfrmGrass.TY =
tblGrass.Primary
WHERE (((tblGrass.Primary)=[Enter Name])) OR
(((tblsubfrmGrass.TY)=[Enter Name]));
This right join only produces results where the 'Name'
exists in tblGrass, when I want the same Name from the
tblsubfrmGrass to be displayed as well. I can't figure
out how to display info from both the form and the subform
regardless if the join fields are equal or not, or if
the 'Name' only appears on one table and not the other
table.
Any tips on how to correct my query?
TIA,
dk