E eugz Registered User. Local time Today, 13:33 Joined Aug 31, 2004 Messages 128 Sep 1, 2004 #1 Calculate records per month Hi all. I need to calculate how many records I have in each month and create table based on this summary result. I appreciate any help. Last edited: Sep 1, 2004
Calculate records per month Hi all. I need to calculate how many records I have in each month and create table based on this summary result. I appreciate any help.
sfreeman@co.mer Sam_F Local time Today, 10:33 Joined Aug 2, 2004 Messages 272 Sep 1, 2004 #2 Try this... Try this with a table with a field called Dates: SELECT Format([Dates] ,"mm" & " yyyy") AS [Date] , Count(Format([Dates],"mm" & " yyyy")) AS [Count] INTO tblCountMonths FROM SomeData GROUP BY Format([Dates],"mm" & " yyyy") ORDER BY Format([Dates],"mm" & " yyyy"); HTH
Try this... Try this with a table with a field called Dates: SELECT Format([Dates] ,"mm" & " yyyy") AS [Date] , Count(Format([Dates],"mm" & " yyyy")) AS [Count] INTO tblCountMonths FROM SomeData GROUP BY Format([Dates],"mm" & " yyyy") ORDER BY Format([Dates],"mm" & " yyyy"); HTH