Hello, I need assistance, I am trying to display in a report the last record for each guest based on Date restriction is over. Following is the table structure and a sample of data:
Guest Admittance Status Table
ID
Guest Name
Date Restricted
Date Restriction is over
Admittance Status
Restricted Reason
1
Smith, Joe
09/01/12
09/05/12
DNR
Drugs
1
Smith, Joe
09/07/12
09/14/12
PERM DNR
Violent
2
Nelson, Sally
09/07/12
09/14/12
DNR
Drinking
3
Doe, Jane
09/12/12
09/20/12
PERM DNR
Violent
What I would like to display in the report is:
Group by Admittance Status, the last record for each guest based on Date restriction is over. (Although Joe Smith has multiple records only the last record is displayed)
GROUP PERM DNR Date Restriction is Over
Smith, Joe 09/14/12
Doe, Jane 09/20/12
GROUP DNR
Nelson, Sally 09/14/12
Any assistance is greatly appreciated. Thank you!
Guest Admittance Status Table
ID
Guest Name
Date Restricted
Date Restriction is over
Admittance Status
Restricted Reason
1
Smith, Joe
09/01/12
09/05/12
DNR
Drugs
1
Smith, Joe
09/07/12
09/14/12
PERM DNR
Violent
2
Nelson, Sally
09/07/12
09/14/12
DNR
Drinking
3
Doe, Jane
09/12/12
09/20/12
PERM DNR
Violent
What I would like to display in the report is:
Group by Admittance Status, the last record for each guest based on Date restriction is over. (Although Joe Smith has multiple records only the last record is displayed)
GROUP PERM DNR Date Restriction is Over
Smith, Joe 09/14/12
Doe, Jane 09/20/12
GROUP DNR
Nelson, Sally 09/14/12
Any assistance is greatly appreciated. Thank you!