B
BigPondNewGroups
I want to create a query that returns the dates of the next five Fridays.
Is this possible?
Simon
Is this possible?
Simon
Allen Browne said:Next Friday is:
Date() - Weekday(Date()) + 6
If you want a query that gives you 5 records for the next 5 Fridays:
1. Create a table with 1 field of type Number, named (say) CountID.
Mark the field as primary key.
Save the table as (say) tblCount.
Enter the records 0 to 4 (5 records all up.)
2. Create a query based on this table.
In the Field row, enter:
TheDate: Date() - Weekday(Date()) + 6 + 7 * [CountID]
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
BigPondNewGroups said:I want to create a query that returns the dates of the next five Fridays.
Is this possible?
Simon