I am trying to build a Accounting Calendar for my company. This calendar will look something like this :
Jan - 4 Weeks, Feb - 4 Weeks, Mar - 5 Weeks
Apr - 4 Weeks, May - 4 Weeks, Jun - 5 Weeks and so on.
I have the above data in row form.
Ex: Columns in the table are Year, qtr, week,month, date and holiday
The data is stored in row form like this
------------------------------------
Year Qtr Week Month Date Holiday
------------------------------------
2001,1,1,1,1/1/2001,Yes
2001,1,1,1,1/2/2001,No
2001,1,1,1,1/3/2001,No
2001,1,1,1,1/4/2001,No
2001,1,1,1,1/5/2001,No
2001,1,1,1,1/6/2001,No
2001,1,1,1,1/7/2001,No and so on.
I need a report in column form like this
Month Qtr First Week Second Week
----- --- ------------- ------------------
Jan * 1 * 1 2 3 4 5 6 7 * 8 9 10 11 12 13 14 *
The * represent the field break (not used in the report).
For this I need to write a VB procedure to populate the report with data from the table.
This is my requirement. I think the question is clear.
Thanks for response.
[This message has been edited by prao (edited 04-27-2001).]