Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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 July 23rd, 2011, 09:31 AM
Authorized User
 
Join Date: Apr 2011
Posts: 16
Thanks: 8
Thanked 2 Times in 2 Posts
Default ACCESS Calculation

I am building a Forms named VEHICLE. I have this "km reading previous" and "km reading Current"... to get the Actual Mileage I used the TEXT BOX in Controls:

In Property Sheet:

Control Source: =Sum(([km reading current]-[km reading previous]))

I got the result correctly, But only in the first record, the next record shows the same total of mileage. How that it happens? Please help me.

Thanks
 
Old July 23rd, 2011, 12:29 PM
Friend of Wrox
 
Join Date: Sep 2010
Posts: 245
Thanks: 5
Thanked 24 Times in 23 Posts
Default

See it this helps:

Referring to a Field in the Previous Record or Next Record
__________________
Boyd Trimmell aka HiTechCoach (.com)
Microsoft Access MVP Alumni 2010-2015
The Following User Says Thank You to HiTechCoach For This Useful Post:
RINGO STARR (July 24th, 2011)
 
Old July 24th, 2011, 06:39 AM
Authorized User
 
Join Date: Apr 2011
Posts: 16
Thanks: 8
Thanked 2 Times in 2 Posts
Default

Thanks... i go to the query then make a TOTAL LINE: (([km reading current]-[km reading previous]))

Then got the results...





Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculation in access ashik112 Access 1 February 26th, 2007 08:38 AM
Need Help creating calculation in Access karen.houston Access 2 August 11th, 2006 06:45 AM
Access Workdays calculation doug.hall Access 1 April 26th, 2005 02:19 PM
Field Calculation Upgrade to VBA from Access Basic Pavesa Access VBA 2 December 23rd, 2003 12:24 PM





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