faaslave Posted January 22, 2008 Posted January 22, 2008 I am not sure how to go about getting the result I want in my script. The answer is probably not in the script itself, so if I am in the wrong category, I apologize. I have employee's that have numerous records pertaining to Sick Leave. When I run the report using this script, it will give me all the records, for all the employees. This works fine. There is a field called "type". Examples of this are: sick leave reviewed sick leave letter issued sick leave warning So what I would like to do, is to be able to run a report, that will only give me the most recent record for each employee of any type. So if an employee has 5 records with reviewed, 2 under letter issued, and 3 with a warning, I would get the most recent of these only. Resulting in: Dave sick reviewed Dave sick leave letter issued Bill sick leave reviewed Jane sick leave reviewed I think I need a new TO with the correct relationship between the employee table and the sick leave table. I just don't know how to go about doing this. Any help would be appreciated as usual. Dave
Recommended Posts
This topic is 6151 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now