Results 1 to 3 of 3
  1. #1
    rmiell is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    5

    minimum number in report

    I have a field which represents a meter reading. Every once in a while, the meter fails, which results in the data entry person putting a zero into this field. When I generate a report based on this field, I want to generate 2 totals, a max amount in this field, and a minimum amount. The zero throws the minimum figure off, so I want to be able to go to the next valid amount that is not zero.

    screen shot:
    Click image for larger version. 

Name:	logsheet.jpg 
Views:	8 
Size:	42.0 KB 
ID:	9424





    In this example, the zero amount by the time is ok, but when I generate the minimum amount in the footer, it would show up as 8335.

    This would be the case only when there is a zero in the detail, that is, if all amounts are >0, no substitution would be needed.

    Can anyone provide a simple way to do this within my report design?

    Thanks in advance

    PS: Access 2007

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    in your minimum load formula put

    = min(iif([IONKW] <> 0 ,[IONKW], null))

  3. #3
    rmiell is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2011
    Posts
    5
    Works perfectly. Thanks a bunch!!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Alert user when inventory below minimum
    By Micky in forum Access
    Replies: 5
    Last Post: 04-06-2012, 03:14 PM
  2. Problem with Minimum Price in IIf argument
    By bellevue in forum Queries
    Replies: 5
    Last Post: 04-06-2012, 02:40 AM
  3. Criteria for a minimum itself
    By hawkins in forum Access
    Replies: 17
    Last Post: 07-27-2011, 12:57 PM
  4. one-to-many-or-none table relationship? (minimum cardinality)
    By racecar333 in forum Database Design
    Replies: 2
    Last Post: 02-24-2011, 07:11 AM
  5. Can't see minimum or maximum buttons?!?
    By Felix_too in forum Forms
    Replies: 2
    Last Post: 12-29-2010, 10:04 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums