I have a large database of values contains 1309280 rows in access same this:

dollar rial weight tariff code day month year
1526276.39 106839346 60103 504020000 21 9 1992
... ... ... ... ... ... ...
8820645.11 617445160 174138 5801010000 9 3 1993
... ... ... ... ... ... ...
32203.74 2254262 8021 9404030000 4 9 1994
... ... ... ... ... ... ...
4048.86 283420 1000 7324020000 29 4 1995
... ... ... ... ... ... ...
1658.66 116106 3330 4428030000 26 9 1996
... ... ... ... ... ... ...
4670.46 326932 30488 701040700 4 5 1997
... ... ... ... ... ... ...
800.25 56018 3554 6810020100 30 9 1998
... ... ... ... ... ... ...
45248.66 3167406 433919 806010000 24 10 1999
... ... ... ... ... ... ...
41133.42 2879340 423266 806010000 10 12 2000
... ... ... ... ... ... ...
898.57 62900 21 9202000000 22 1 2001
... ... ... ... ... ... ...
37 2590 49 6816000000 27 11 2002
... ... ... ... ... ... ...
9918.12 694268 3548 9703000000 11 12 2003
... ... ... ... ... ... ...
134152.29 9390660 35390 805030100 4 11 2004
... ... ... ... ... ... ...
42722.81 2990597 5991 6005030000 30 4 2005
... ... ... ... ... ... ...
4934842.09 345438945 105565 5801010000 3 12 2006
... ... ... ... ... ... ...
16861.47 1180302 6717 9703000000 2 8 2007
... ... ... ... ... ... ...
15085.71 1056000 2640 1302060000 10 6 2008
... ... ... ... ... ... ...
3694042.11 258582948 61887 5801010000 12 6 2009

I was wondering if it's possible to export these rows to excel 2007 different sheets with a macro that do this steps respectively:
First Sort with year
Second Sort with months of the same year (for example 1991-1 to 1991-12 and same for 1992 to 2009)
Third Sort days of same year and month, for example 1991-1-1 to 1991-1-31 and same for 1992 to 2009
I want each sheet contains 50000 rows and after filling this rows, it create sheet 2 and continue to probably sheet number 26 for all 1309280 rows

sincerely
aminexcel