Question : Create Date Table

Hello all... I have been trying to figure this one ou .. but with no luck.

What i need is code that will create a new table based on the current date ... here is what i would like the table to look like ... and all i have available is todays date.

BucketNumber      Month      MonthNo      Year
1                       May      5      2005
2                       June      6      2005
3                       July      7      2005
4                       August      8      2005
5                      September      9      2005
6                      October      10      2005
7                      November      11      2005
8                      December      12      2005
9                      January      1      2006
10                      February      2      2006
11                      March      3      2006
12                       April      4      2006


You will notice that the table places the month previous to todays date at the bottom and goes back 12 months. Any help would be appreciated.  Thanks in advance.

NEWJACK

Answer : Create Date Table

Hmm....what release of Access?

Maybe this will work, instead:

Format(DateSerial(Year(Date()), Month(DateAdd("m",tblMonth.MonthNo,Date())),1)  ,"mmmm")

Random Solutions  
 
programming4us programming4us