Forum Discussion
MarcDouglas
1 month agoQrew Member
To be more explicit about the boundary conditions:
var text qryFirstOfMonth = "{6.OAF.'" & Date($FYStartYear,10,1) & "'}";
var text qryEndOfMonth = "{6.OBF.'" & ($endOfMonth + Days(1)) & "'}"; // Add one day and use "before" instead of "on or before"
Or alternatively, ensure your End Date field in the Period table is set to the last second of the period (e.g., "5/23/2026 11:59:59 PM") rather than just the date.