I need Ideas on how to approach a query in access 2007. Its to figure bonus for working particular days I have two tables that are imported from different software One table is daily and lists each employee ID, their part/full-time/oncall code status and hours worked each day Date | ID - | jobcode | hours worked | 8/01/2012 | 003 | Full | 8 | 8/01/2012 | 004 | Part | 4 | 8/02/2012 | 003 | Full | 8 | 8/02/2012 | 004 | part | 5 | My second table has a holiday beginning and end day and how many total hours each type of employee must work those days or range of days begin | End | Parttime | Fulltime | 8/01/2012 | 8/01/2012 | 4 | 8 | 9/01/2012 | 9/02/2012 | 4 | 12 | 10/01/2012 | 8/01/2012 | 4 | 8 | 11/01/2012 | 8/01/2012 | 4 | 8 | There are about 30 holidays in a year and if an employee works the required hours they get a bonus after one year. I need to create a query that Tells me the holidays the employess did not meet their requiement and how much they were off by. I've thought of doing it in vba where I am more comfortable with the language. is that the better route? Thanks for any ideas.