I am trying to get the amount that each group has spent on a monthly basis but also grouped on the GRPNO. This is how I am currently getting the information below.
SELECT CLAIMS.GRPNO, Sum([CLAIMS]![PRVPMT]+[CLAIMS]![EEPMT]) AS [AMOUNT]
FROM CLAIMS
WHERE (((CLAIMS.PDDT) Between 1-1-2004 And 1-31-2004))
GROUP BY CLAIMS.GRPNO;
GRPNO PDDT PRVPMT EEPMT
685 2/9/2005 1994.24 20.02
684 5/6/2004 1992 11.2
388 6/2/2004 1991.65 1.1
387 5/31/2005 1984.8 15.21
713 4/2/2004 1984 88.85
323 6/23/2004 1977.6 65
770 11/15/2004 1969.41 87.12
82 3/10/2005 1962.41 36.57
Then I collect the information into a table that looks like this:
I am trying to find the portion of this SQL that fill in the questions.
GRPNO Jan2004 Feb2004 Mar2004 Apr2004 etc...
196 7938.55 ??????? ???????
673 6883.55 ??????? ???????
82 4615.47 ??????? ???????
666 4517.43 ??????? ???????
756 4291.08 ??????? ???????
706 3815.74 ??????? ???????
Anythoughts...
SELECT CLAIMS.GRPNO, Sum([CLAIMS]![PRVPMT]+[CLAIMS]![EEPMT]) AS [AMOUNT]
FROM CLAIMS
WHERE (((CLAIMS.PDDT) Between 1-1-2004 And 1-31-2004))
GROUP BY CLAIMS.GRPNO;
GRPNO PDDT PRVPMT EEPMT
685 2/9/2005 1994.24 20.02
684 5/6/2004 1992 11.2
388 6/2/2004 1991.65 1.1
387 5/31/2005 1984.8 15.21
713 4/2/2004 1984 88.85
323 6/23/2004 1977.6 65
770 11/15/2004 1969.41 87.12
82 3/10/2005 1962.41 36.57
Then I collect the information into a table that looks like this:
I am trying to find the portion of this SQL that fill in the questions.
GRPNO Jan2004 Feb2004 Mar2004 Apr2004 etc...
196 7938.55 ??????? ???????
673 6883.55 ??????? ???????
82 4615.47 ??????? ???????
666 4517.43 ??????? ???????
756 4291.08 ??????? ???????
706 3815.74 ??????? ???????
Anythoughts...