Re: Brain Cramp!
From: SteveS (sanfu)
Date: 09/08/04
- Previous message: Biggles: "Re: Crosstab totals question"
- In reply to: anonymous_at_discussions.microsoft.com: "Re: Brain Cramp!"
- Next in thread: John Spencer (MVP): "Re: Brain Cramp!"
- Reply: John Spencer (MVP): "Re: Brain Cramp!"
- Reply: Duane Hookom: "Re: Brain Cramp!"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 8 Sep 2004 13:15:22 -0700
It looks like you are attempting to sum across fields/columns in a single
record. This generally suggests your table structure(s) are not normalized.
Why is this bad?Because you will have to edit the queries, forms and reports
every time you have to add another Item.
But to answer your question, all of the Item weight fields should be in the
query grid.
You can't use the function Sum() because it adds rows not columns. So in a
column of the query, enter:
Total_Wt: Item_1 + Item_2 + Item_3 + ... + Item_n
You might be able to add a text box control and set the control source as
(instead of the column in the query):
=Item_1 + Item_2 + Item_3 + ... + Item_n
HTH
Steve
--------------------------------
"Veni, Vidi, Velcro"
(I came; I saw; I stuck around.)
"anonymous@discussions.microsoft.com" wrote:
> customer | Item_1 | Item_2 |Item_n | Total_1-n |
>
> Item_1, etc are the weights for the items
>
>
> >-----Original Message-----
> >I don't see anything that suggests you are storing
> shipping weights.
> >Considering what you have provided, your request is
> impossible.
> >
> >--
> >Duane Hookom
> >MS Access MVP
> >--
> >
> >"JR" <anonymous@discussions.microsoft.com> wrote in
> message
> >news:821901c495b0$66bb7340$a501280a@phx.gbl...
> >> In a query I have to sum shipping weights for different
> >> items.
> >>
> >> customer | Item_1 | Item_2 |Item_n | Total_1-n |
> >>
> >> How can I get this done?
> >>
> >> Thanks!
> >
> >
> >.
> >
>
- Previous message: Biggles: "Re: Crosstab totals question"
- In reply to: anonymous_at_discussions.microsoft.com: "Re: Brain Cramp!"
- Next in thread: John Spencer (MVP): "Re: Brain Cramp!"
- Reply: John Spencer (MVP): "Re: Brain Cramp!"
- Reply: Duane Hookom: "Re: Brain Cramp!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|