CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2003
    Location
    St Paul, MN - USA
    Posts
    48

    [RESOLVED] Strange Error.

    I am getting a divide by zero error on this when I am calling it from VB.6 I am using Crystal 10.

    If {Sales.Suggestion} = 'Lower' Then
    Count ({Sales.Suggestion})

    But when I just do.
    Count ({Sales.Suggestion})
    Then I do not get that error.

    What is going on? Any ideas?

  2. #2
    Join Date
    May 2006
    Posts
    324

    Re: Strange Error.

    I would guess that the first formula has an implicit else that is returning 0 and that is being used elsewhere in a divide. Try changing it to

    If {Sales.Suggestion} = 'Lower' Then
    Count ({Sales.Suggestion})
    else 1

  3. #3
    Join Date
    Jan 2003
    Location
    St Paul, MN - USA
    Posts
    48

    Re: Strange Error.

    got it thanks.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured