I have a query that keys off on a status field. I just use Nz(status) and filter out all other types but 'W'. This allows me to show any record for each ID with that status (there is only one or none per each ID) but it also shows the records of ID's that have no status (one record per each ID). I would like to show a list that has one record for each ID with the chosen 'W' status BUT if that ID doesn't have a 'W' status then show the record that has no status. I need one or the other but default on the 'W'.
Can someone point me in the right direction. I am not an Ace programmer. Thanks
Code:
WHERE (((Nz([StatFlag]))<>"R" And (Nz([StatFlag]))<>"M" And (Nz([StatFlag]))<>"H" And (Nz([StatFlag]))<>"P")
Can someone point me in the right direction. I am not an Ace programmer. Thanks