Good afternoon,
I have a query that always goes back to the database and re aligns data, but I think I am doing this the long way round.
Ideally if the query is run on a daily basis and I would like (if possible) to work out what day of the week it is and run accordingly as follows.
If Monday run the query from the previous friday and if its Tuesday - Friday just run the previous days
Currently I have the formula in my criteria in the Query as follows
Which only runs the data for Friday and not Saturday or Sunday.
I have tried using > but I don't think this is the correct procedure.
thanks in advance
Gavin
I have a query that always goes back to the database and re aligns data, but I think I am doing this the long way round.
Ideally if the query is run on a daily basis and I would like (if possible) to work out what day of the week it is and run accordingly as follows.
If Monday run the query from the previous friday and if its Tuesday - Friday just run the previous days
Currently I have the formula in my criteria in the Query as follows
Code:
IIf(Weekday(Date())=2,Date()-3,Date()-1)
I have tried using > but I don't think this is the correct procedure.
thanks in advance
Gavin