|
-
Jun 19th, 2007, 02:54 AM
#1
Thread Starter
Junior Member
[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.
-
Jun 19th, 2007, 09:56 AM
#2
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.
-
Jun 19th, 2007, 08:05 PM
#3
Thread Starter
Junior Member
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.
-
Jun 20th, 2007, 12:49 AM
#4
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.
-
Jun 20th, 2007, 01:00 AM
#5
Thread Starter
Junior Member
Re: Displaying of Details in Crystal Report!
hmmm. sounds logical. shall go try and reply asap.
-
Jun 20th, 2007, 01:16 AM
#6
Thread Starter
Junior Member
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. =)
-
Jun 20th, 2007, 06:16 AM
#7
Member
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
-
Jun 20th, 2007, 11:17 AM
#8
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.
-
Jun 20th, 2007, 07:33 PM
#9
Thread Starter
Junior Member
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?
-
Jun 20th, 2007, 07:41 PM
#10
Thread Starter
Junior Member
-
Jun 25th, 2007, 09:56 PM
#11
Thread Starter
Junior Member
[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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|