Access 2007-2019
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
Home   Courses   Seminars   Templates   Help   TechHelp   Forums   Contact   Join   Order   Logon  
Home > Forums > Access
Access Forum

Welcome to the Microsoft Access Forum. Access is by far our most popular topic here at Computer Learning Zone. This forum is for everyone to read but only students can post here. If you'd like to become a student, all you have to do is enroll in one of my courses, which you can do for as little as $1. After you create a logon, you will have full access to the Forums.

Subscribe to this forum and receive an email update whenever new posts are added. You will also be notified by email if any conversations you are involved in receieve new comments. Yes, even non-students can subscribe to update notifications.

NEW: Access Developer Students, make sure you subscribe to the Developer Student Forum.

Click Here to Post a comment and start a new discussion

Please read the FORUM RULES before posting.


Form Footer Total MultiCrit Upload Images   Link 
Walter Hamilton 
2 months ago
I'm trying to add several form footer totals based off the field [Total Value].  The issue is I need it reference the field [Stage_ID].  I need a form footer total for each of five stages with the Stage_ID of 1, 2, 3, 4, or 5.

I've attempted DSum, DLookup and IIf.
Adam Schwanz
2 months ago
So your saying you need the total value when it's marked stage ID 1, stage ID 2 etc? I would think DSUM would work for that

What expression did you try?
DSUM("[Total Value]","TableName","Stage_ID=1")

Can you upload an image to make sure I understand what you're asking? You can push the upload images button on the top right of your post.
Walter Hamilton
2 months ago

Walter Hamilton
2 months ago
Adam -

DSum works when I'm referencing tbl_Tasks.  I need the sum to update according to what is displayed on the form.  I'll be filtering it by Directorate with a combo box.  I'll upload an image of the Opportunity Dashboard.  Bottom Line.  I want the "Un-Weighted" text boxes at the top of the form to update according to what is displayed in the subform as it is filtered by the selection in the Directorate combo box.  The Un-Weighted text boxes currently work using DSum but they don't update as the subform is filtered.
Walter Hamilton
2 months ago

Adam Schwanz
2 months ago
So what happens if you change the control source in those stage total fields to change in an after update event of your filters? So if you filter the page to only show say ContactID=1 you change the control source in those fields to DSUM("[Total Value]","TableName","StageID=1 AND ContactID=1"

I'm sure you can do this a lot more elegantly with a function than having to hardcode all the fields.
Alex Hedley
2 months ago
If you're doing a DSUM or SUM or DLOOKUP in the Detail section you'll need to also add the Criteria there, where as if the Detail section is filtered the Footer values will also filter since it�s based on the current recordset
Walter Hamilton
2 months ago
Adam -

The expression I'm currently using for Stage 0 Unweighted is:

=Format(Nz(DSum("[Total Value]","[tbl_Tasks]","[Stage_ID]=1"),0),"Currency")

SO what you're saying is I need to change the Where criteria to something like:

"Stage_ID]=1 AND [Directorate_ID] = [Directorate_ID]")

The Combo Box on the form is named: Directorate_ID
Adam Schwanz
2 months ago
Well, that's about as simple as it gets. I didn't think that worked with filters for some reason but it appears to.
Richard Rost
2 months ago
Base your form on a query. In that query, add a calculated field.

SumTotalValue: IIF(StageID=1 OR StageID=2 OR StageID=3, TotalValue, 0)

Then just SUM up the TV in the footer. No need for DSUM, although that would work too, albeit slower.
Add a Reply

Show All Comments

Start a NEW Conversation
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.

You may want to read these articles from the 599CD News:

9/22/2021Access DevNet Testimonials
9/20/2021Letter Writer
9/19/2021Multi Field Combo
9/19/2021Project Management
9/17/2021Overlapping Windows
9/10/2021Benefits of Access
9/10/2021Access on a Phone
9/5/2021Prevent Deletion
9/4/2021Booklet Template

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Account Login
Online Theater
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: microsoft access forum  PermaLink