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 14th, 2005, 07:52 AM
    Nickoteen Nickoteen is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 16
    Nickoteen is an unknown quantity at this point (<10)
    CR Parameter field Question

    Ok, so here's the thing:

    I have a VB(6.0) project and a CR report in it. The report draws it's data from a stored procedure. Now, one of the fileds appearing on the report is called Code1, and in this particular case it has values 010, 100, 110 and 230. These numbers represent the item codes my company uses for something not important to us right now ... On the report, Code1 is located in the details section.

    What I can't seem 2 figure out is this:

    I made a parameter field called Selection. The value type I want to work with is a String. Code1 field also has the same value type. On the " Set default values" tab I entered earlier mentioned values ( 010, 100, 110, 230 ) and assigned description to them.

    Now, when I use my parameter field " Selection " with the Select Expert, the formula looks like this: {spProSastavnicePrintQuery.Code1} = {?@Selection}

    The thing that troubles me is when I call upon my report, the entire Details section is EMPTY. BUT! When I use Select Expert and manualy enter

    {spProSastavnicePrintQuery.Code1} = 100 for example, the report comes up the

    way it's supposed to .. in the Details Section it generates only the data with the
    Code1 containing the value of 100. What is the problem ?

    Hope this post isn't too confusing .. Thnx in advance ..

    Last edited by Nickoteen; March 14th, 2005 at 09:28 AM.
    Reply With Quote
      #2    
    Old March 15th, 2005, 03:12 PM
    baijuthakkar baijuthakkar is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 14
    baijuthakkar is an unknown quantity at this point (<10)
    Re: CR Parameter field Question

    is it like this
    {spProSastavnicePrintQuery.Code1} = {?@Selection}


    or

    {spProSastavnicePrintQuery.Code1} = {?Selection}


    ?Parameter represent parameter and @Parameter represent formula
    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 03:50 AM.



    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