Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. xxyyzz49

    Need to sum hours from calculated elapsed time field that is a string

    Pete Rebecca wrote earlier: Your formula works on the interval nicely but not the data as she says it is. As for what she is trying to get done there are at least two ways of reading her post. Rebecca, If there is no solution posted above may I respectfully ask that you restate your problem...
  2. xxyyzz49

    Need to sum hours from calculated elapsed time field that is a string

    TIMESERIAL returns times. 12:00:00 + 48 hours returns 12:00:00 Here is an example formula for converting interval to minutes using your record for 2.5r hours. So where this formula uses the variable elaptime you would use the data field name. // {@add0230} local stringvar elaptime :=...
  3. xxyyzz49

    Need to sum hours from calculated elapsed time field that is a string

    TIMESERIAL() returns a time value, DATESERIAL returns a date value. I missed the elapsed time inference but no matter. Use TIMESERIAL() to compute the sum or difference for you. See the examples in the help file. But for a quick example TIMESERIAL(12 + 2,00,00) returns 2:00:00 PM...
  4. xxyyzz49

    Need to sum hours from calculated elapsed time field that is a string

    Try TIMESERIAL(hh,mm,ss) function. TIMESERIAL(2,30,00) for 2:30 AM or TIMESERIAL(14,30,00) for 2:30 PM. The help feature with CR gives several more interesting examples.
  5. xxyyzz49

    Subtracting one field from another field

    A count of tickets closed today by a tracker can be subtracted from a tracker count. That would give a open ticket number for the day.
  6. xxyyzz49

    Subtracting one field from another field

    The report selects records from the database closed on the current date or still open. Count ({CallLog.Tracker} is a summary of the number of records created using the summary command. #ClosedToday is a running total that counts the closed dates based on a evaluation formula...
  7. xxyyzz49

    Subtracting one field from another field

    You can easily count the total number of records with a summary field. Using a running total field with an evaluate formula can do a count based on the value of the tracker field or the value of the closed date field. Then create a formula to get the counts for the day. Pete
  8. xxyyzz49

    Crystal Reports select statement

    There are database tools that allow the SQL statements to be seen at the database manager. SQL Profiler is the tool for SQL Server to name one. Askg the DBA for your organization to assist.
  9. xxyyzz49

    In Formula, Convert date to string data types

    If the parameter is a string representing a date time date type and is optional if hasvalue({?Start_date}) and isdatetime({?Start_date}) then datetime({?Start_date} ) else {Command.LAST_MONTH_ST_DT} // assuming the database is returning a date time from the original post
  10. xxyyzz49

    Conditional Formatting

    For the first formula have you tried to strip it down to the essentials? Status = 'Closed' and received date equal to the currant date? Why the subtraction of 547 from current date? For the second formula what does not working mean? Is the field yellow or is the field is green or something else...
  11. xxyyzz49

    Sub-report Parameter Links not available

    The parameters in the main and sub-report must match by data type. If they don't, they won't appear as a selection on the link dialog.
  12. xxyyzz49

    How to counting group?

    Are you trying to count just the distinct name and service type pairs? If so create a formula that concatenates the name and service type then create a summary that performs a distinct count of the formula and displays it for the groups. // formula @NameType {name} + ' ' + {ServiceType}
  13. xxyyzz49

    Help with sum of variable

    It appears the formula @Hitz should use a global variable for Hitz and initialize it in a group header. The way it is written it will only return 0 when the if statement is false or 1 when the if statement is true. Then when it is executed again it is set to 0 and the tests run again returning a...
  14. xxyyzz49

    Changing Group Order

    This is just an idea that may or may not work. Create a database query of the students with the needed information and add an extra column to the query for RSVP, 'yes' or 'no' type data with all set to 'no' initially. Export that data with database facilities for a database like Access or create...
  15. xxyyzz49

    Changing Group Order

    Real similar to what I had. Suggestion, might want to finish with an else should other values be added to the data later. One small detail suppress the field when you place it on the detail line for sorting. My code: if {USP_EARN_SUMM;1.SOURCE} = 'P' then 1 else if {USP_EARN_SUMM;1.SOURCE} =...
  16. xxyyzz49

    Changing Group Order

    Something I did to sort records in the detail section in a specified order was to create an index using a formula. Based on the value of the field I was wanting to sort the formula assigned a value in the order desired, an integer starting at 1, then set a sort on the formula. Could group on the...
  17. xxyyzz49

    Possible to create a 'Datasheet' of sort, within CR so current report can look at? NOT A SUB-REPORT!

    Looking at the list of supported data sources it appears what you ask for is not directly supported. Exporting various types of files could be a workable option as could sub-reports depending on your application.
  18. xxyyzz49

    Return Minimum Value of End of Range Paramater

    From my reading of your question. You can use DateSerial(2013, 6, 1) to get the begin date of the range then DATEDIFF to calculate the difference. If you need something else please restate the question with a bit more detail.
  19. xxyyzz49

    Show a title like "{first date} to {last date}" refering to dates in the report

    Might try the MAXIMUM and MINIMUM functions in separate formulas. Two examples:" //formula @FirstDate minimum({database date}) //formula @LastDate maximum({database date})
  20. xxyyzz49

    Aligment of Decimal points

    Convert the data to string and right align. Would be able to strip off the % with the string functions. If using a summary field in a group footer align the fields with the details above by their right sides and then right align the data within the field. Keep an eye on fonts and font sizes and...

Part and Inventory Search

Back
Top