A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conditional SUM, in Textbox



 
 
Thread Tools Display Modes
  #1  
Old November 19th, 2004, 03:39 PM
an
external usenet poster
 
Posts: n/a
Default Conditional SUM, in Textbox

Hello.
In one table I have IdPassage, IdChunk, and ChunkValue
fields.
The Passage is composed for Chunks. The addition the Sum
of Chunks is the length of the Passage.
In a Form I need to SUM the ChunkValue, only of the same
Passage.
How I can make this, please?

Anticipatedly grateful.
an
  #2  
Old November 19th, 2004, 04:01 PM
Sprinks
external usenet poster
 
Posts: n/a
Default

Hi, an.

I'm assuming that you have a table called Passages, and that it has a
one-to-many relationship with the table you describe. Create a main form
based on Passages, and create a continuous subform based on Chunks, linked by
the IDPassage field.

Then in the subform footer, place a control with the Control Source set to:

=Sum(Nz([ChunkValue]))



"an" wrote:

Hello.
In one table I have IdPassage, IdChunk, and ChunkValue
fields.
The Passage is composed for Chunks. The addition the Sum
of Chunks is the length of the Passage.
In a Form I need to SUM the ChunkValue, only of the same
Passage.
How I can make this, please?

Anticipatedly grateful.
an

  #3  
Old November 19th, 2004, 04:21 PM
an
external usenet poster
 
Posts: n/a
Default

Thanks, S.

And if I need to COUNT the number of ID's (records) there
are with same Passage, please?

Thanks in advance.
an

-----Original Message-----
Hi, an.

I'm assuming that you have a table called Passages, and

that it has a
one-to-many relationship with the table you describe.

Create a main form
based on Passages, and create a continuous subform based

on Chunks, linked by
the IDPassage field.

Then in the subform footer, place a control with the

Control Source set to:

=Sum(Nz([ChunkValue]))



"an" wrote:

Hello.
In one table I have IdPassage, IdChunk, and ChunkValue
fields.
The Passage is composed for Chunks. The addition the

Sum
of Chunks is the length of the Passage.
In a Form I need to SUM the ChunkValue, only of the

same
Passage.
How I can make this, please?

Anticipatedly grateful.
an

.

  #4  
Old November 19th, 2004, 04:27 PM
Sprinks
external usenet poster
 
Posts: n/a
Default

Similarly, in a subform footer control, set the Control Source to

=Count([IDChunk])

HTH
Sprinks

"an" wrote:

Thanks, S.

And if I need to COUNT the number of ID's (records) there
are with same Passage, please?

Thanks in advance.
an

-----Original Message-----
Hi, an.

I'm assuming that you have a table called Passages, and

that it has a
one-to-many relationship with the table you describe.

Create a main form
based on Passages, and create a continuous subform based

on Chunks, linked by
the IDPassage field.

Then in the subform footer, place a control with the

Control Source set to:

=Sum(Nz([ChunkValue]))



"an" wrote:

Hello.
In one table I have IdPassage, IdChunk, and ChunkValue
fields.
The Passage is composed for Chunks. The addition the

Sum
of Chunks is the length of the Passage.
In a Form I need to SUM the ChunkValue, only of the

same
Passage.
How I can make this, please?

Anticipatedly grateful.
an

.


  #5  
Old November 19th, 2004, 04:31 PM
an
external usenet poster
 
Posts: n/a
Default

Many thanks, S, for your help.

have you a good weekend.
an

-----Original Message-----
Similarly, in a subform footer control, set the Control

Source to

=Count([IDChunk])

HTH
Sprinks

"an" wrote:

Thanks, S.

And if I need to COUNT the number of ID's (records)

there
are with same Passage, please?

Thanks in advance.
an

-----Original Message-----
Hi, an.

I'm assuming that you have a table called Passages,

and
that it has a
one-to-many relationship with the table you describe.

Create a main form
based on Passages, and create a continuous subform

based
on Chunks, linked by
the IDPassage field.

Then in the subform footer, place a control with the

Control Source set to:

=Sum(Nz([ChunkValue]))



"an" wrote:

Hello.
In one table I have IdPassage, IdChunk, and

ChunkValue
fields.
The Passage is composed for Chunks. The addition the

Sum
of Chunks is the length of the Passage.
In a Form I need to SUM the ChunkValue, only of the

same
Passage.
How I can make this, please?

Anticipatedly grateful.
an

.


.

 




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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW DO I EDIT A CONDITIONAL FORMAT? WillRn General Discussion 0 October 25th, 2004 06:37 PM
textbox used as report parameter jh Setting Up & Running Reports 4 October 21st, 2004 06:59 PM
Required Field Conditional Katherine R New Users 2 September 1st, 2004 05:52 AM
textbox formatting problem jeffrey c Powerpoint 4 August 21st, 2004 10:09 AM
Copy Conditional Formatting Bianca Worksheet Functions 2 August 9th, 2004 01:47 PM


All times are GMT +1. The time now is 05:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.