I am running Access97. I have a table which contains the following fields:
item
desc
ndc#
qty
amt
date
Basically, it contains historical information about drug purchases. For example:
item 12345
desc aloxi
ndc# 1234-123-1234
qty 25
amt $24,000.00
date 1/1/05
The table has a different record for previous months, one record per month, per drug, which has a different qty and amt. The end report I am trying to get to would look very similar to the results of a crosstab query, where the drugs would be listed down the left side(rows),the months would be listed across the top(columns), and the qty/amt would populate the grid. The problem I am having is that a crosstab will only allow one value, say qty, in the grid.
Does anyone know how to "trick" the crosstab query into allowing both values to be used/displayed?
Thanks for any ideas...
item
desc
ndc#
qty
amt
date
Basically, it contains historical information about drug purchases. For example:
item 12345
desc aloxi
ndc# 1234-123-1234
qty 25
amt $24,000.00
date 1/1/05
The table has a different record for previous months, one record per month, per drug, which has a different qty and amt. The end report I am trying to get to would look very similar to the results of a crosstab query, where the drugs would be listed down the left side(rows),the months would be listed across the top(columns), and the qty/amt would populate the grid. The problem I am having is that a crosstab will only allow one value, say qty, in the grid.
Does anyone know how to "trick" the crosstab query into allowing both values to be used/displayed?
Thanks for any ideas...