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 IamaSherpa 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. mvalley

    Trying to create weekend only cases formula

    Thank you. Your second suggestion, "You can suppress a section with a formula like: not(DayofWeek({case_record_cr_prdate}) in [1,2])" worked. Thank you so much. Mary
  2. mvalley

    Trying to create weekend only cases formula

    I am trying to create a formula that only shows cases done on Saturday or Sunday. The field I have is case_record_cr_prdate. I created a formula called @Saturday that reads: If DayofWeek({case_record_cr_prdate}) = 7 THEN 1 ELSE 0 and a second formula, @Sunday that reads: If...
  3. mvalley

    Display only numbers within a string

    Thank you Brian, that worked PERFECTLY. Mary
  4. mvalley

    Display only numbers within a string

    I have a field, {case_record_audit_trail.cr_audit_addl_info}that displays the string- Old Patient Account#: 00035632421 (CT = S). I would like to display ONLY the number. Can a formula achieve this goal? If so, how would I write it?
  5. mvalley

    Date Range Formula

    Thank you all for your assistance. BettyJ's suggestion of the ToText and changing + to & created an error free formula. Always appreciate the wonderful, and quick assistance I receive from this forum. Mary
  6. mvalley

    Date Range Formula

    Thank you, but I am getting the error message on the ' - ' that a number is required here. Sorry this is so frustrating!!
  7. mvalley

    Date Range Formula

    Still not working, error message now shows the entire string, minimum({cr_prdate}) & ' - ' & maximum({cr_prdate}) with the message: "a date time is required
  8. mvalley

    Date Range Formula

    I too thought this would work, but I am getting an error message saying that a number is required where'-' is in the formula. Still trying other options. Thank you
  9. mvalley

    Date Range Formula

    Works great thank you. My only issue is to create a formula that would display only the Minimum date if the minimum and maximum dates are the same (example, both dates would be 01/02/2015 verses 01/02/2015 - 01/04/2015. I think it would be and if, then,else formula, but I am having trouble...
  10. mvalley

    Date Range Formula

    I have a report that has a field,(cr_prdate) that may have a single date or a date range. How would I create a formula that would display the date range of the records I am displaying (ie for single date 1/2/2015 or for weekend from 1/2/2015 - 1/4/2015) as a header formula. Thanks for any...
  11. mvalley

    need info from old and new fields for a report

    I fear I am not explaining myself very well, to which I apologize. Fields are as follows: v_CRA-anes_staff cr_urn anes_staff anes_staff_descr cd_seq v_CRA_anesstaff_clinicalrole_group cr_urn anesthesia_staff clinical_role cd_seq What I would like to do is create a...
  12. mvalley

    need info from old and new fields for a report

    {anes_staff}and {anesthesia_staff} are based on patient records and may include a CRNA as well as an Anesthesiologist OR just an Anesthesiologist Examples: MMOUSE CRNA and BMOOSE MD or just BMOOSE MD {anes_staff} would contain this information for records prior to 3/1/2014. On...
  13. mvalley

    need info from old and new fields for a report

    I have a report that I need to pull old data as well as new data due to a field name change. Field 1 is {anes_staff} which contains data prior to 3/1/2014. This field could have 1-3 names listed Field 2 is {anesthesia_staff} which contains data since 3/1/2014. This field also could have 1-3...
  14. mvalley

    Total minutes to display time in Hours and Minutes

    That does it, thank you both for your assistance. Mary
  15. mvalley

    Total minutes to display time in Hours and Minutes

    Thanks for the suggestion, but with the Abs in front it returns a Crystal report Error "A Number, or currency amount is required here"on the (ToText(Truncate({@totalprocmins}/60), '#'))
  16. mvalley

    Total minutes to display time in Hours and Minutes

    Do not want the - in front of the Hr and the - in front of min to display...makes it look like NEGATIVE time
  17. mvalley

    Total minutes to display time in Hours and Minutes

    Pete..your suggestion almost has me there. Some of the conversions are displaying as - Hr -Min examples: 90 displays as -1Hr-30min; 379 displays as -6Hr-19min.Suggestions on how I can fix this display?
  18. mvalley

    Total minutes to display time in Hours and Minutes

    I have a formula @totalprocmins that displays total minutes (example 79 mins) I have been asked to convert this number into hrs and minutes so 79 would display as 1 hr and 19 mins. I know this must be a relatively easy formula, but I have been away from Report Writing for several months I am...
  19. mvalley

    Trouble displaying correct time difference

    That works Ian, thank you for supplying me with the correct formula. You Rock!! Mary
  20. mvalley

    Trouble displaying correct time difference

    Following instructions as noted above,(based on info that 750 is 7 hr 50 mins) local numbervar min:= tonumber(right(totext(timefield, 0,""),2)); local numbervar hr:= tonumber(left(totext(timefield, 0,""),length(timefield)-2)); When I put the timefield in after length(timefield)-2)I get an error...

Part and Inventory Search

Back
Top