If a query for a report returns "Friday" in a field, can someone tell me how do get it to display the day before in the report printout. ie "Thursday" or "Wednesday" in the query shows as "Tuesday" in the report.
DatePart("w",CDate(TheDate)-1,vbSunday)
where the return value is the day of the week starting with the 1 vbSunday. If you use another value for FirstDayOfWeek then, such as vbMonday, then that equals 1
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.