Results 1 to 11 of 11

Thread: [RESOLVED]Displaying of Details in Crystal Report!

  1. #1

    Thread Starter
    Junior Member Coke's Avatar
    Join Date
    Mar 2007
    Posts
    31

    [RESOLVED]Displaying of Details in Crystal Report!

    I want to know how to display only a record for a month if there alot of records in that particular month. For example, in the month of July, i have 3 records in my database, 12th of July, 21st of July and 28th of July. How do i just display the 28th of July for that particular month? Now i am only able to display all for that particular month, and i have many other months too! HELP!
    Last edited by Coke; Jul 4th, 2007 at 01:34 AM.

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

    Re: Displaying of Details in Crystal Report!

    One option is to use the date field and Group the report by month. Use the Group Footer to display the record rather than the Detail Section.

  3. #3

    Thread Starter
    Junior Member Coke's Avatar
    Join Date
    Mar 2007
    Posts
    31

    Re: Displaying of Details in Crystal Report!

    so any coding needed anywhere for the grouping.? cos i tried grouping, and sort by month, they came out all the records for the month.

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

    Re: Displaying of Details in Crystal Report!

    Group By Month.
    Sort By Date in ascending order.
    Suppress the Details section.
    Print everything in the Group Footer section which essentially means only the last detail record will be printed.

  5. #5

    Thread Starter
    Junior Member Coke's Avatar
    Join Date
    Mar 2007
    Posts
    31

    Re: Displaying of Details in Crystal Report!

    hmmm. sounds logical. shall go try and reply asap.

  6. #6

    Thread Starter
    Junior Member Coke's Avatar
    Join Date
    Mar 2007
    Posts
    31

    Re: Displaying of Details in Crystal Report!

    er.. still not working. they do show the last record. but it shows the last record of every date. OMG!
    Ok. For example, my form prompts the user to choose the search range using a datetimepicker, From and To Date(For Example, From 28th Apr 2006 to 27th Jul 2006). When the user clicks the search button, the form will then pass the value from the datetimepicker to the report, recieved by the parameterfields and stores the value in the fields to perform searching and displaying. The solution that i have done is only able to display all the dates that is within this date range. The solution you gave me only show the last record for every date. yup. I want to display only one record for that particular month for that particular company. yup. By the way, thanks for attending to me so far. =)

  7. #7
    Member
    Join Date
    Mar 2007
    Posts
    32

    Re: Displaying of Details in Crystal Report!

    Hi Coke,
    for this i think you need to pleay with selection formula, something like this

    ..SelectionFormula= "{Tbl.Date1} >= #" & Me.DatePicker1.selectedvalue & "#" and "{Tbl.Date2} >= #" & Me.DatePicker2.selectedvalue & "#"

    hope this helps
    ta

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

    Re: Displaying of Details in Crystal Report!

    The solution you gave me only show the last record for every date.
    It still seems like you are not Grouping By Month.

    Post a screenshot of the Group Options dialog for the date field.

  9. #9

    Thread Starter
    Junior Member Coke's Avatar
    Join Date
    Mar 2007
    Posts
    31

    Re: Displaying of Details in Crystal Report!

    thks faizee
    Code:
    ..SelectionFormula= "{Tbl.Date1} >= #" & Me.DatePicker1.selectedvalue & "#" and "{Tbl.Date2} >= #" & Me.DatePicker2.selectedvalue & "#"
    this code is type in the report.? and wad does the"#" means? wad is tbl? care to explain?

  10. #10

    Thread Starter
    Junior Member Coke's Avatar
    Join Date
    Mar 2007
    Posts
    31

    Re: Displaying of Details in Crystal Report!

    oh btw, brucevde , i solve it with your method, displaying the fields in the group footer, but i added another group, so that for every month, every Company last Record will be display! but got one more small problem. the last record is not the latest date. So how can i sort them so that the latest date is the last Record.?
    And Lastly, the Numbering of the record is abit funny anyhow jump here and there how to solve this.?
    Last edited by Coke; Jun 20th, 2007 at 10:01 PM.

  11. #11

    Thread Starter
    Junior Member Coke's Avatar
    Join Date
    Mar 2007
    Posts
    31

    [RESOLVED]Displaying of Details in Crystal Report!

    never mind abt the numbering. i deleted it. so no more problems for that. haha. ok.

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