P
PayeDoc
Hello All
I have a table [months], with fields 'month name' (key field), 'bacs date'
(plus a few other fields), and I have a table [alarm schedule] fields 'month
name', and 'alarm_ID' (plus a few other fields). In table [alarm schedule]
there are many records with the same value in 'month name' - but with
different 'alarm_ID' values. I need a query that will return all records
from table [months] where there is a non-null value in field 'bacs date' but
where there is no corresponding field in table [alarm schedule] with an
'alarm_ID' value of 4.
i.e. if there is a record in [months] with a 'month name' value of "November
2008" where 'bacs date' = "04/11/08", but none of the records in [alarm
schedule] that have a 'month name' value of "November 2008" have a
'alarm_ID' value of 4, the query must return the record from [months] with
the 'month name' value of "November 2008" and 'bacs date' = "04/11/08".
I hope someone can help me with this, as I can't seem to get the results I
need!
Many thanks
Leslie Isaacs
I have a table [months], with fields 'month name' (key field), 'bacs date'
(plus a few other fields), and I have a table [alarm schedule] fields 'month
name', and 'alarm_ID' (plus a few other fields). In table [alarm schedule]
there are many records with the same value in 'month name' - but with
different 'alarm_ID' values. I need a query that will return all records
from table [months] where there is a non-null value in field 'bacs date' but
where there is no corresponding field in table [alarm schedule] with an
'alarm_ID' value of 4.
i.e. if there is a record in [months] with a 'month name' value of "November
2008" where 'bacs date' = "04/11/08", but none of the records in [alarm
schedule] that have a 'month name' value of "November 2008" have a
'alarm_ID' value of 4, the query must return the record from [months] with
the 'month name' value of "November 2008" and 'bacs date' = "04/11/08".
I hope someone can help me with this, as I can't seem to get the results I
need!
Many thanks
Leslie Isaacs