CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual Basic Programming > Crystal Reports
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old March 16th, 2004, 10:05 PM
    raisa raisa is offline
    Junior Member
     
    Join Date: Mar 2004
    Posts: 3
    raisa is an unknown quantity at this point (<10)
    Unhappy Null value issue

    Hello everyone,

    I try to get correct data in CR9, using simple SQl statment. But I am missing some records, I think it is because they may have 'null' value.
    I have two fields:
    math (value Y or NULL or N)
    and
    read (value Y or NULL or N),

    I would like to see all records where math='Y' or read='Y'.

    I am getting combination of Y Y or NULL Y or Y Y and I can not get combination of Y NULL. I tryed IsNull function and InStr, but seems it is doesn't change the result. What am I doing wrong?
    Any help would be appreciated!
    Reply With Quote
      #2    
    Old March 17th, 2004, 01:45 PM
    blanch1122 blanch1122 is offline
    Junior Member
     
    Join Date: Mar 2004
    Posts: 3
    blanch1122 is an unknown quantity at this point (<10)
    Are you limiting the data through sql or through record selection in Crystal Reports?
    Reply With Quote
      #3    
    Old March 17th, 2004, 01:57 PM
    raisa raisa is offline
    Junior Member
     
    Join Date: Mar 2004
    Posts: 3
    raisa is an unknown quantity at this point (<10)
    Actually, I am suppose to do it through ASP pages, but doing so I am missing some records, so than I limited the data through the record selection in Crystal and I was getting the same result(..still missing records...) The same SELECT statement works fine in SQL...
    Reply With Quote
      #4    
    Old March 18th, 2004, 07:11 AM
    ashu ashu is offline
    Junior Member
     
    Join Date: Mar 2004
    Posts: 4
    ashu is an unknown quantity at this point (<10)
    raisa

    Dear Raisa,

    ur query shd not be a proble.pls chk whether the parameters are taken carefully:i selection formula orRegards,


    Ashwin
    Reply With Quote
      #5    
    Old March 18th, 2004, 09:18 AM
    raisa raisa is offline
    Junior Member
     
    Join Date: Mar 2004
    Posts: 3
    raisa is an unknown quantity at this point (<10)
    I think I got it! I use IsNull and InStr functions, checking for NULL and "" values.

    Thanks for help!
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual Basic Programming > Crystal Reports


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 04:19 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009