I'm working on creating my first "Web App" using Microsoft Access 2013 and publishing it to my company's sharepoint portal. So far it's working excellently, but I can't seem to wrap my brain around what would otherwise be a very simple issue in any other database solution.
I have a list of dates for attempts to get into client's homes for work, and I want to be able to filter the list to just the dates that were from the last day that we actually worked. In theory this is easy, because I could just query all the records where the work date equals the max date less than today, like:
[Work Date] = (
SELECT MAX([Work Date])
FROM [Work Attempt]
WHERE [Work Date] < Today()
)
However, web apps don't seem to support subqueries in their requery where clause. Even using a data macro doesn't seem to support using functions like MAX.
Is there a way to get a Web App to do what I want it to do here? I can very easily get "Yesterday" by putting
[Work Attempt].[Work Date] = DateAdd(Day, -1, Today())
in the requery where clause, but that doesn't help me because we don't work weekends, and the function then becomes useless on a monday (likewise for "tomorrow" on a friday).