
Signature
KARL DEWEY
Build a little - Test a little
> The query expression I am trying to build involves two tables. The first is
> called 'tbl_NewInfo' and involves a field called 'XRT' with options 'Yes' and
[quoted text clipped - 7 lines]
> Thankyou.
> Radhika
'tbl_NewInfo' actually has several fields. Both 'tbl_NewInfo' and
'tbl_TEPRecords' have a field called 'ID#' that are related. I only mentioned
the Yes/No field as it was the one I wanted to include in my expression.
> Your table 'tbl_NewInfo' has only one field (Yes/No) so how do you relate the
> two tables?
[quoted text clipped - 10 lines]
> > Thankyou.
> > Radhika
KARL DEWEY - 08 May 2008 18:56 GMT
Try this --
SELECT tbl_NewInfo.XRT, tbl_NewInfo.[ID#], tbl_TEPRecords.XRTEndDate,
tbl_TEPRecords.XRT
FROM tbl_NewInfo INNER JOIN tbl_TEPRecords ON tbl_NewInfo.[ID#] =
tbl_TEPRecords.[ID#]
WHERE (((tbl_NewInfo.XRT)=True) AND ((tbl_TEPRecords.XRTEndDate) Is Null));

Signature
KARL DEWEY
Build a little - Test a little
> 'tbl_NewInfo' actually has several fields. Both 'tbl_NewInfo' and
> 'tbl_TEPRecords' have a field called 'ID#' that are related. I only mentioned
[quoted text clipped - 14 lines]
> > > Thankyou.
> > > Radhika