>Here is an example John, all dates are only subject to the next business day
>if the date falls on a Sunday only.
[quoted text clipped - 6 lines]
>Lien letters sent on the 2nd of each month
>etc.
Ok, try this. Create a Table named Num, with one long integer field N;
manually fill it with values from 1 through the number of months
you'll want to fill out your schedule. Be generous; I'd put in 120 or
so (your table won't be all that big).
Create another table, Events, with two fields: Event and DayOfMonth,
filled with the information above (and the rest of it).
Your ToDo table should have four fields: ToDoID (Autonumber); Event
(text); EventDate (Date/Time; don't use the reserved word Date for the
name); and Done (Yes/No or Date if you want to enter the date actually
done).
Create a Query by adding [Num] and this events table to a query grid,
WITHOUT any join line. This will give you a "Cartesian join" - if
there are 20 events and 120 N's, you'll get 2400 records.
Put a calculated field in the Query:
EventDate: DateSerial(2005, N, [DayOfMonth])
and include the Event field from Events. Change the query to an Append
query and then append it to ToDo.
To get weekends converted to Monday, run this Update query:
UPDATE ToDo
SET EventDate = DateAdd("d", 3 - DatePart("w", [EventDate], 6),
[EventDate])
WHERE DatePart("w", [EventDate], 6) < 3;
The DatePart function will return 1 for Saturday, 2 for Sunday, ... ,
7 for Friday - the 6 specifies that the week starts on Saturday.
John W. Vinson[MVP]
Joe Cilinceon - 14 Jan 2005 13:34 GMT
Thank you John I give it a real try.
Joe Cilinceon
>>Here is an example John, all dates are only subject to the next business
>>day
[quoted text clipped - 43 lines]
>
> John W. Vinson[MVP]