Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Condition..! [modified]

Condition..! [modified]

Scheduled Pinned Locked Moved Visual Basic
database
11 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jamal Abdul Nasir
    wrote on last edited by
    #1

    --> i am using the following code in crystal reports XI's formula...

    if isnull({vSTUDENT_FEE_DETAIL.Admission}) then
    formula = "ooooo"
    else
    formula = "yyyyy"
    end if

    --> i am not getting the expecting result. --> if the ADMISSION is NULL then it should print "ooooo" else "yyyyy". --> when it is not NULL it displays the right result that is "yyyyy", but when it is NULL then it displays nothing.. --> ADMISSION is the field in the database table. --> give me any clue. --> thanks....

    J A Nasir K

    modified on Thursday, May 21, 2009 4:30 PM

    L 0 S 3 Replies Last reply
    0
    • J Jamal Abdul Nasir

      --> i am using the following code in crystal reports XI's formula...

      if isnull({vSTUDENT_FEE_DETAIL.Admission}) then
      formula = "ooooo"
      else
      formula = "yyyyy"
      end if

      --> i am not getting the expecting result. --> if the ADMISSION is NULL then it should print "ooooo" else "yyyyy". --> when it is not NULL it displays the right result that is "yyyyy", but when it is NULL then it displays nothing.. --> ADMISSION is the field in the database table. --> give me any clue. --> thanks....

      J A Nasir K

      modified on Thursday, May 21, 2009 4:30 PM

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Jamal Abdul Nasir wrote:

      --> give me any clue.

      Check out the CodeProject forum Guidelines[^]

      M J 2 Replies Last reply
      0
      • J Jamal Abdul Nasir

        --> i am using the following code in crystal reports XI's formula...

        if isnull({vSTUDENT_FEE_DETAIL.Admission}) then
        formula = "ooooo"
        else
        formula = "yyyyy"
        end if

        --> i am not getting the expecting result. --> if the ADMISSION is NULL then it should print "ooooo" else "yyyyy". --> when it is not NULL it displays the right result that is "yyyyy", but when it is NULL then it displays nothing.. --> ADMISSION is the field in the database table. --> give me any clue. --> thanks....

        J A Nasir K

        modified on Thursday, May 21, 2009 4:30 PM

        0 Offline
        0 Offline
        0x3c0
        wrote on last edited by
        #3

        Perhaps ADMISSION isn't null (with no value at all), but just an empty string. Alternatively, since that in itself wouldn't produce the result you received, you may be terminating program flow if ADMISSION is null before you ever actually get to the condition

        J 1 Reply Last reply
        0
        • L Lost User

          Jamal Abdul Nasir wrote:

          --> give me any clue.

          Check out the CodeProject forum Guidelines[^]

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          42

          Never underestimate the power of human stupidity RAH

          1 Reply Last reply
          0
          • J Jamal Abdul Nasir

            --> i am using the following code in crystal reports XI's formula...

            if isnull({vSTUDENT_FEE_DETAIL.Admission}) then
            formula = "ooooo"
            else
            formula = "yyyyy"
            end if

            --> i am not getting the expecting result. --> if the ADMISSION is NULL then it should print "ooooo" else "yyyyy". --> when it is not NULL it displays the right result that is "yyyyy", but when it is NULL then it displays nothing.. --> ADMISSION is the field in the database table. --> give me any clue. --> thanks....

            J A Nasir K

            modified on Thursday, May 21, 2009 4:30 PM

            S Offline
            S Offline
            Samir Ibrahim 0
            wrote on last edited by
            #5

            Try using: if vSTUDENT_FEE_DETAIL.Admission Is Nothing then hth

            Like car accidents, most hardware problems are due to driver error. Samir R. Ibrahim

            J 1 Reply Last reply
            0
            • S Samir Ibrahim 0

              Try using: if vSTUDENT_FEE_DETAIL.Admission Is Nothing then hth

              Like car accidents, most hardware problems are due to driver error. Samir R. Ibrahim

              J Offline
              J Offline
              Jamal Abdul Nasir
              wrote on last edited by
              #6

              --> this the code in the crystal report's formula. it does not support nothing in there. :)

              J A Nasir K

              M S 2 Replies Last reply
              0
              • L Lost User

                Jamal Abdul Nasir wrote:

                --> give me any clue.

                Check out the CodeProject forum Guidelines[^]

                J Offline
                J Offline
                Jamal Abdul Nasir
                wrote on last edited by
                #7

                --> wat do u mean by "3".?

                J A Nasir K

                L 1 Reply Last reply
                0
                • 0 0x3c0

                  Perhaps ADMISSION isn't null (with no value at all), but just an empty string. Alternatively, since that in itself wouldn't produce the result you received, you may be terminating program flow if ADMISSION is null before you ever actually get to the condition

                  J Offline
                  J Offline
                  Jamal Abdul Nasir
                  wrote on last edited by
                  #8

                  --> actually Admission got values and null values as well. stil have a problem...

                  J A Nasir K

                  1 Reply Last reply
                  0
                  • J Jamal Abdul Nasir

                    --> this the code in the crystal report's formula. it does not support nothing in there. :)

                    J A Nasir K

                    M Offline
                    M Offline
                    Mycroft Holmes
                    wrote on last edited by
                    #9

                    Jamal Abdul Nasir wrote:

                    this the code in the crystal report's formula

                    Would have been useful in the OP. if you own the select change the select/proc to return a non null value

                    Never underestimate the power of human stupidity RAH

                    1 Reply Last reply
                    0
                    • J Jamal Abdul Nasir

                      --> wat do u mean by "3".?

                      J A Nasir K

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #10

                      I mean "--> GET A CLUE"

                      Check out the CodeProject forum Guidelines[^]

                      1 Reply Last reply
                      0
                      • J Jamal Abdul Nasir

                        --> this the code in the crystal report's formula. it does not support nothing in there. :)

                        J A Nasir K

                        S Offline
                        S Offline
                        Samir Ibrahim 0
                        wrote on last edited by
                        #11

                        Don't tell any one :)

                        Like car accidents, most hardware problems are due to driver error. Samir R. Ibrahim

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups