Re: How to DSUM multiple fields
- From: "Douglas J. Steele" <NOSPAM_djsteele@xxxxxxxxxxxxxxxx>
- Date: Thu, 13 Nov 2008 10:58:49 -0500
Add how? Are you saying you want the sum of the four fields?
=DSum("Nz([08rt], 0) + Nz(]07rt], 0) + Nz([06rt], 0) + Nz([05rt])",
"Collections", "DateValue([Date]) = " & Format(Date, "\#yyyy\-mm\-dd\#"))
Note that you should rename your field from Date: that's a reserved word,
and should never be used for your own purposes. For a comprehensive list of
names to avoid (plus a link to a free utility that will check your
application for compliance), see what Allen Browne has at
http://www.allenbrowne.com/AppIssueBadWord.html
More important, though, is that fact that your field names (05rt, 06rt, 07rt
and 08rt) implies that your tables aren't properly modelled. That looks
suspiciously like a repeating group, which means that your tables don't even
comply to 1st normal form.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Gator" <Gator@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:45834CFD-FE26-4E9B-8791-54CE55124048@xxxxxxxxxxxxxxxx
How could/should I add 07rt, 06rt & 05rt to the following control source
property of the textbox?
=DSum("[08rt]","Collections","Year([Date]) = " & Year([Date]) & " And
Month([Date]) = " & Month([Date]) & " And Day([Date]) = " & Day([Date]))
thanks
.
- Follow-Ups:
- Re: How to DSUM multiple fields
- From: Gator
- Re: How to DSUM multiple fields
- References:
- How to DSUM multiple fields
- From: Gator
- How to DSUM multiple fields
- Prev by Date: Re: Popup reminder in a form
- Next by Date: Re: How to DSUM multiple fields
- Previous by thread: How to DSUM multiple fields
- Next by thread: Re: How to DSUM multiple fields
- Index(es):
Relevant Pages
|