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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Totaling selected records only.



 
 
Thread Tools Display Modes
  #1  
Old May 31st, 2004, 11:42 PM
David
external usenet poster
 
Posts: n/a
Default Totaling selected records only.

I have been attempting to total some fields from
individual records in a table and then display the result
in a text box but have been unable to do so. I have
setup a Query which if run will sum all the records in
the table. I need to find a way to have the Query total
only the records in the table which are associated with
the record which is currently being displayed in the form
(not from the same table). I would really appreciate any
help in getting to grips with this problem.
  #2  
Old June 1st, 2004, 12:55 AM
John Vinson
external usenet poster
 
Posts: n/a
Default Totaling selected records only.

On Mon, 31 May 2004 15:42:59 -0700, "David"
wrote:

I have been attempting to total some fields from
individual records in a table and then display the result
in a text box but have been unable to do so. I have
setup a Query which if run will sum all the records in
the table. I need to find a way to have the Query total
only the records in the table which are associated with
the record which is currently being displayed in the form
(not from the same table). I would really appreciate any
help in getting to grips with this problem.


Use a criterion of

=Forms!NameOfYourForm!NameOfTheControl

on whatever field constitues this link.

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
 




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


All times are GMT +1. The time now is 10:06 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.