S
S Begum via AccessMonster.com
Hi All,
I have the following data:
ID Name DOB Status Status Start Date
01 Andrews 05/08/2001 Active 01/01/2008
01 Andrews 05/08/2001 Not Active 01/03/2008
01 Andrews 05/08/2001 Active 28/06/2008
02 Hill 25/05/2002 Not Active 25/05/2008
03 Woods 27/06/2001 Active 07/02/2002
03 Woods 27/06/2001 Not Active 05/03/2003
04 Green 07/08/1999 Active 07/08/2008
Basically the output i require from an Access query is when there is more
than one ID, the status is Active i want the query to pick the earliest
record and in a seperate column mark as OK and alternatively for all the
records where only one ID present to also be outputted as OK.
The following formula works if applied in Excel:
=IF(D2 ="Active","OK",IF(A2=A1,"NOT APPLICABLE","OK"))
Any feedback would be appreciated.
Regards
S Begum
I have the following data:
ID Name DOB Status Status Start Date
01 Andrews 05/08/2001 Active 01/01/2008
01 Andrews 05/08/2001 Not Active 01/03/2008
01 Andrews 05/08/2001 Active 28/06/2008
02 Hill 25/05/2002 Not Active 25/05/2008
03 Woods 27/06/2001 Active 07/02/2002
03 Woods 27/06/2001 Not Active 05/03/2003
04 Green 07/08/1999 Active 07/08/2008
Basically the output i require from an Access query is when there is more
than one ID, the status is Active i want the query to pick the earliest
record and in a seperate column mark as OK and alternatively for all the
records where only one ID present to also be outputted as OK.
The following formula works if applied in Excel:
=IF(D2 ="Active","OK",IF(A2=A1,"NOT APPLICABLE","OK"))
Any feedback would be appreciated.
Regards
S Begum