dbTalk Databases Forums  

Crosstab query problem

comp.database.ms-access comp.database.ms-access


Discuss Crosstab query problem in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jbachich
 
Posts: n/a

Default Crosstab query problem - 08-19-2003 , 02:59 PM






Hi

I am running a crosstab query using a range of dates as the column heading,
product name as row headings and a summation of purchase earnings as the
value entry for the data. Some 'product name' might have more than one
amount due on the same day because different people are buying the product
(different invoices). The amount earned by product is calculated in another
simple query where the amounts due are derived by an expression of unit *
unitcost.

The problem is that the data will not accumulate the amounts of the 'second'
invoice in the output of values (summation of earnigs for the product on a
particular day in the date range).

what am I doing wrong?????

Thanks for the help
Joe



Reply With Quote
  #2  
Old   
Marc
 
Posts: n/a

Default Re: Crosstab query problem - 08-24-2003 , 04:14 AM






Joe,

Can it be that for the column that contains the value in designview in
stead of the sum-function contains first,min or max ?
Or do the date-values of your database contain a time-component ?
In the last case you could change the field-expression for the
column-header into invdate:int(invoicedate) to get 1 column for every
date.
If you include the SQL-expression in your message it would be much
easier to give an accurate answer.

Marc

"jbachich" <jbachich (AT) snip (DOT) net> wrote

Quote:
Hi

I am running a crosstab query using a range of dates as the column heading,
product name as row headings and a summation of purchase earnings as the
value entry for the data. Some 'product name' might have more than one
amount due on the same day because different people are buying the product
(different invoices). The amount earned by product is calculated in another
simple query where the amounts due are derived by an expression of unit *
unitcost.

The problem is that the data will not accumulate the amounts of the 'second'
invoice in the output of values (summation of earnigs for the product on a
particular day in the date range).

what am I doing wrong?????

Thanks for the help
Joe

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.