Results 1 to 4 of 4
  1. #1
    hawkins is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    82

    Condtion not working correctly

    I have a imbalance text box that finds the percent difference between the two amps. If MaxAmps is 0 nothing will display. The control source is : =IIf([MaxAmps]=0," ",(([MaxAmps]-[MinAmps])/[MaxAmps])) , this works perfectly fine but I have found one case where it does not and that is when there is a MaxAmps value but MinAmps=0. I am confused why this does not work even though it is just subtracting 0. Any suggestions will be greatly appreciated!

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Hi

    In the one case where it does not work, what is the value of MaxAmps and what is the result please.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    hawkins is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    82
    I just didnt have a big enough width for 100.0%, woops

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Easy mistake to make . Glad you're sorted.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Replies: 5
    Last Post: 03-17-2011, 06:21 AM
  2. Replies: 0
    Last Post: 01-27-2011, 09:58 AM
  3. Replies: 0
    Last Post: 07-15-2010, 12:32 PM
  4. Split Form not working correctly
    By Brian62 in forum Access
    Replies: 29
    Last Post: 02-16-2010, 05:43 PM
  5. Search field is not working correctly
    By jakeao in forum Programming
    Replies: 9
    Last Post: 05-18-2009, 07:47 PM

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