Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
Forms Totals Printing
Launa Sallai 
     
3 years ago
Hello,

I create a series of Search Forms for the users that can search tables with entering filters and display the results.  My forms have queries built, then a Listbox that desplays the results.  User enters the search criteria either in a text box or from a combo box and is used in the query. On this example, monthly sales (picture included)  I want to be able to display a total of the sales from the results in list box, and be able to print the results from the list box.  I am not sure this is possible, I looked at continuous forms, but did not find a way to print a report based on the results or to filter them based on user selection.

What I am looking for is a visual way to display results from a query on a form, have totals for the sales, for either all or monthly based on the filter criteria, and be able to print the results.  Is this possible, or is there another way to do this?
Launa Sallai OP  @Reply  
     
3 years ago

Kevin Robertson  @Reply  
          
3 years ago
Is the total to be displayed in a Text Box?
I would try DSum
Launa Sallai OP  @Reply  
     
3 years ago
Well if it can be done this way with the listbox, I'd be very much ok with a text box showing the total of the sales below.
Launa Sallai OP  @Reply  
     
3 years ago
Kevin, where do I do the Dsum? In the query?  or a new query?
Launa Sallai OP  @Reply  
     
3 years ago
I watched the Dsum video, and tried it,
=DSum("Total","SaleQuery1","SaleDate >=#" & Date()-30 & "#")
But using the query instead of the table, didn't work.  It does if I change it to the actual table.
=DSum("Total","Sale","SaleDate >=#" & Date()-30 & "#")
But this doesn't have the filters used by the user.  I created the query to add the columns to pull the Month, and year out of the date, to easily filter.  but you can not do this on a table.
Launa Sallai OP  @Reply  
     
3 years ago
I think I got it working...

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
 
What's This?

 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 9/29/2026 4:42:43 PM. PLT: 0s