I'm not 100% sure what you mean, but I just created this query loosely based on what you've provided. Note that the database contains a table called tblHoliday which contains a field called HolidayDate.
SELECT tblHoliday.HolidayDate, CInt([HolidayDate]-CDate(#5/5/2012#)) AS Days
FROM tblHoliday
WHERE (((CInt([HolidayDate]-CDate(#5/5/2012#)))>5));
I put in the Criteria box just below the Days field, ">5" (without the quotes). The above code is what the SQL equivalent is.
Try pasting this into the SQL window, substituting your date field and table name, and see if it works. If so, look at the design view of the query and change what you want to change.