?
Solved

1st or last day missing from formula

Posted on 2014-04-08
3
Medium Priority
?
213 Views
Last Modified: 2014-04-12
Can anyone please help me along here?  I seem to be missing the 1st and/or last day from my reports with this formula that is currently in the Crystal Reports vs what I pull via Excel data connection.  

{@Closed Date} in {?Begin Date} to {?End Date}  

Many thanks....
0
Comment
Question by:captgriggs1
  • 2
3 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 39987347
Is ClosedDate a date or Date Time?

How are you entering the parameters?

Are they dates or datetimes?

If you have a datetime chances are the dates being entered as values will either have 0:0: as the time or the current time appended.  Your closed date may match the date but have a time that is before the start datetime or after the end datetime.

mlmcc
0
 

Author Comment

by:captgriggs1
ID: 39987736
Thanks mlmcc, after your response, I added the -1 to my formula and it gets the information that I need but, I'm not really sure if it's the correct way or not.....  I'm using the Select Expert to build.  I am an extreme beginner at this.  Do you think this will serve the purpose?  (all dates, no time) Thanks

{CallLog.CallStatus} = 'Closed' and
{@Closed Date} = {?Begin Date}-1 to {?End Date} and
(if
{?Group Name} <> 'All'
then
{Assignee.GroupName} ={?Group Name}
else
{Assignee.GroupName} like "*")
0
 
LVL 101

Accepted Solution

by:
mlmcc earned 300 total points
ID: 39987789
If it works it should be ok.

I generally do dates with a comparison as

{@Closed Date} >= {?Begin Date} AND {@Closed Date}  <= {?End Date}

In that way I know how the compare will work

mlmcc
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Integration Management Part 2
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question