+ Reply to Thread
Results 1 to 5 of 5

How to compare two entries in a report from the same field.

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    South Africa
    MS-Off Ver
    Access, Excel 2010
    Posts
    52

    How to compare two entries in a report from the same field.

    Hi,

    I have a report with a date field ([datenormstest]) and other fields like [pushup], [situp] etc. The report is sorted (newest to oldest) by the date ([datenormstest]). When I run the report, I want to compare the [pushup] with the entry below that (also [pushup]) to see if the member did more or less than the previous entry.

    Please, I need a formula or a simple vba code to accomplish this.

    Thank you

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: How to compare two entries in a report from the same field.

    Please provide sample workbook with desire output
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Registered User
    Join Date
    11-17-2011
    Location
    South Africa
    MS-Off Ver
    Access, Excel 2010
    Posts
    52

    Re: How to compare two entries in a report from the same field.

    Open the database, type 123456 into the yellow box and click Run Report. I want to compare the top and second [pushup] in the report to see if the member did more or less pushups than the last time the information was captured.

    Sample.zip

  4. #4
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: How to compare two entries in a report from the same field.

    Its related to Access please post your query at below link

    http://www.excelforum.com/access-pro...ng-vba-macros/

  5. #5
    Registered User
    Join Date
    11-17-2011
    Location
    South Africa
    MS-Off Ver
    Access, Excel 2010
    Posts
    52

    Re: How to compare two entries in a report from the same field.

    Never mind. I used the following:

    http://www.techonthenet.com/access/queries/weight.php

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Automatically add multiple original field entries total (that has multiple entries)
    By steverokh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2013, 01:20 AM
  2. Replies: 11
    Last Post: 09-19-2012, 08:04 PM
  3. List of Names- Report of unique entries?
    By MjRmatt in forum Excel General
    Replies: 5
    Last Post: 08-03-2010, 06:24 AM
  4. Displaying a field in a report
    By simjambra in forum Access Tables & Databases
    Replies: 1
    Last Post: 08-10-2009, 02:47 PM
  5. Calculate a field in a Report
    By wrightie in forum Access Tables & Databases
    Replies: 11
    Last Post: 06-17-2009, 12:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1