Results 1 to 8 of 8

Thread: How to Show Report?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2005
    Posts
    102

    How to Show Report?

    Hi there,
    I developed a program using VB6 with MS Access 2000. Data is saving in Access 2000 fine. And i'm using Seagate Crystal Reporting 8 for reporting. But i do not know how to show report like (From Date: 01-02-2006 To: 31-02-2006). I want to let user enter date from how many dates he wants data. I think "select" command will work here. But dont' know how to. Please help me.. in detail..
    thanx

  2. #2
    Member
    Join Date
    Mar 2006
    Posts
    62

    Re: How to Show Report?

    Try to use SelectionFormula

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Nov 2005
    Posts
    102

    Re: How to Show Report?

    Mr. Just a nood

    Please define how can i apply SelectionFormula ?

  4. #4
    Member
    Join Date
    Mar 2006
    Posts
    62

    Re: How to Show Report?

    With Selection Formula we just send to the report for specific statements of SQL and let the report works for us to get all data by that statements. But crystal reports using their langs and they call it Crystal Syntax and a little bit difference with usual SQL statements.

    See this link on how to implement selection formula


    Regard, Noob

  5. #5
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: How to Show Report?

    Or select your own record set and send that recordset to the report. VB is a lot more flexible than Crystal Syntax, as far as I'm concerned.

  6. #6
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How to Show Report?

    Moved to reporting section

  7. #7
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: How to Show Report?

    You have several options but it depends on how you have setup your report. As already mentioned you can modify the SelectionFormula. Another option is to add parameters to your report. Then modify the selection formula in Crystal (Report -> Edit Selection Formula -> Record menu).

    For example, a report using the Northwind.Orders table which has two Date (not DateTime) parameters called FromDate and ToDate.

    The Record Selection Formula using Crystal Syntax would be

    {Orders.OrderDate} In {?FromDate} to {?ToDate}

    If you set the parameters to Jan 1 1997 and Dec 31 1997

    The sql statement generated by Crystal would be

    Code:
    SELECT
        Orders.CustomerID, Orders.OrderDate
    FROM
        Northwind.dbo.Orders Orders
    WHERE
        Orders.OrderDate >= "Jan 1 1997 00:00:00AM" AND
        Orders.OrderDate < "Jan 1 1998 00:00:00AM"

  8. #8
    Fanatic Member noielen's Avatar
    Join Date
    Nov 2005
    Location
    Cebu, Phil.
    Posts
    680

    Re: How to Show Report?

    Plucky,

    What have you done so far now?

    noielen
    noister
    <advertising link removed by moderator>

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