An Access query like this one should do the trick:
PARAMETERS StartDate DateTime;
SELECT TableName.*
FROM TableName
WHERE (((TableName.Date) Between [StartDate] And DateAdd("d",6,[StartDate])));
0
votes
PARAMETERS StartDate DateTime;
SELECT TableName.*
FROM TableName
WHERE (((TableName.EventDate)>([Startdate]-7) And (TableName.EventDate)<([startdate]+7)));
I think TableName.Date in your example is using a reserved word as a field name - you might want to change it.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more