Thanks for reading my post.
I've been working on a Payroll Db. In one of the queries the pay record information for all active employees for a two week period are returned. The criteria for this query is: [Forms]![frmReportDates3].[PayPeriodID] There are two other controls on this same form, [cboStartDate] and [cboEndDate]. I need to determine if an observed Holiday from an unrelated table, tblHolidays.HolidayDate falls between those two dates, and if it does to return the value 8 (hours), and if not, 0 (hours) in alias [HolidayHrs]. Is there a way to do this using DLookUp??
I’m thinking this can be done, but I’m lost as how to construct this. Any help would be much appreciated.
I've been working on a Payroll Db. In one of the queries the pay record information for all active employees for a two week period are returned. The criteria for this query is: [Forms]![frmReportDates3].[PayPeriodID] There are two other controls on this same form, [cboStartDate] and [cboEndDate]. I need to determine if an observed Holiday from an unrelated table, tblHolidays.HolidayDate falls between those two dates, and if it does to return the value 8 (hours), and if not, 0 (hours) in alias [HolidayHrs]. Is there a way to do this using DLookUp??
I’m thinking this can be done, but I’m lost as how to construct this. Any help would be much appreciated.