CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Crystal Reports

  1. #1
    Join Date
    Jan 1999
    Posts
    4

    Crystal Reports



    How do I make crystal reports print a report between a certain date. The one

    that I have tried out so far is [in Date " & Beginning & " to Date " & Ending]

    but it doesn't work. Please help. This is urgent. Thanks.

  2. #2
    Join Date
    Jan 1999
    Location
    Cairo /egypt
    Posts
    7

    Re: Crystal Reports



    Hello ,

    This code used to print "category_id" which user pass it .


    Dim critria as String

    critria = Text1.text

    Me.Report1.SelectionFormula = "{category.category_id} = ' " + critria + " ' "


    make the same

    if you want me to mail you the code mail me .

    wael farouk ahmed

    [email protected]




  3. #3
    Join Date
    Jan 1999
    Posts
    4

    Re: Crystal Reports



    I used the formula below. Thnaks for your help anyway. Your help is very much appreciated.


    .SelectionFormula = "{Sales_Records.PDate} >= Date " & Beginning & " And {Sales_Records.PDate} <= Date " & Ending

  4. #4
    Join Date
    Feb 1999
    Location
    kar,india
    Posts
    12

    Re: Crystal Reports



    The date related querries are very dangerous. Because when we give 01/01/99, will be taking as the string. You are

    comparing one String with a data field, so query will not work. You try this query and try again


    Report1.SelectionFormula = &quot;{personnel.DOJ} &gt;= {01-01-95} and {personnel.DOJ} &lt;= {12/01/95}&quot;



    Wish you all the best

    Girish

    Project Manager.

    GuildSoft Pvt. Ltd.



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