Wrox Programmer Forums
|
BOOK: Beginning Access VBA
This is the forum to discuss the Wrox book Beginning Access 2002 VBA by Robert Smith, Dave Sussman, Ian Blackburn, John Colby, Mark Horner, Martin Reid, Paul Turley, Helmut Watson; ISBN: 9780764544026
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 24th, 2003, 08:59 AM
Registered User
 
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Viewing Calculated Totals In A Form

I currently have multiple users keying totals into 700+ spreadsheets to show daily, monthly and YTD figures. I want to house this info in Access 97 and I'm trying to set up a form that will display the calculated totals. How can I display the monthly totals, per plan, based on the current date listed on the form?

For instance, I have 700+ plans and I want to have the form show the current month total for plan A, based on the current date...Thanks!
 
Old October 23rd, 2003, 03:17 AM
Registered User
 
Join Date: Oct 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to krswhy
Default

I have been using Microsoft Access 97 since 1999. I think you could solve your problem by creating Reports from Access window.

First, make a Query consist of the Fields you want to appear in your Report. I think you should make a Crosstab Query.

Next Step is create a new Report using New Report Wizard. This new Report should based on the Query(Crosstab Query you've made). The Wizard then will ask you to group the new Report by any field you choose, for example: If your want to show the Total of a Month then you can group the new Report by field Month.

Hope this could help you solve the problem.

Happy Reporting!

Herru
 
Old October 23rd, 2003, 09:04 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

First Create a field on your query design view using the DatePart() function like this

PlansThisMonth: DatePart("m",[DateField])

then in the search criteria paste the Date() function and the DatePart() function like this

DatePart("m",Date())

This will pull all plans for current month only

Let me know if this works

Sal
 
Old October 23rd, 2003, 09:18 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Remember that when using a crosstab query with a date, you must delimit your begin and start dates so that the data you want to show only spans one year. When Access formats your dates to just show the Month, Quarter, it will do so for all the data shown. So it will add records for October 2003, October 2002, October 2001, Etc. as one result, which will be wrong.

Sal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with totals rsm42 ASP.NET 1.0 and 1.1 Basics 0 December 15th, 2006 01:18 PM
Totals not accurate! dba123 Reporting Services 1 February 5th, 2006 10:53 PM
viewing different tables accornig to form hastikeyvan Classic ASP Basics 4 June 27th, 2005 01:48 AM
Validate calculated field in sub form MG76 Access 4 March 18th, 2004 04:26 PM
Totals bjackman Access 1 February 8th, 2004 09:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.