What does this Crystal Reports XI Formulas Error mean?

75 pts.
Tags:
Crystal Reports
Crystal Reports formulas
Crystal Reports XI
To many arguments have been given to this function

Software/Hardware used:
Crystal XI

Answer Wiki

Thanks. We'll let you know when a new response is added.

Based on the new details provided:

You probably need to convert the results of your LEFT and MID functions to numbers, since those functions return strings.

Try something like this:

clockIn := datetime(ToNumber(left(str,4)), ToNumber(mid(str,5,2)), ToNumber(mid(str,7,2)), ToNumber(mid(str,9,2)), ToNumber(mid(str,11,2)), ToNumber(mid(str,13,2)));

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • carlosdl
    The error message is pretty explanatory.... You might want to add more details and/or post some code.
    76,980 pointsBadges:
    report
  • Gamblersgobroke
    Six have been given, here's the code. I'm trying to determine if a employee has worked a double back shift. they need to have 8hrs worked and 8hrs rest between shifts. if not that is considered a double back, so i need to compare the clock out time to their clock in time. These are numeric fields. cktimhim.tlatim (Clk In) cktimhim.tlatom (Ck Ot) //datetime(yyyy,mm,dd,hh,mm,ss) clockIn := datetime(left(str,4), mid(str,5,2), mid(str,7,2), mid(str,9,2), mid(str,11,2), mid(str,13,2)); this is where I'n getting the error, how can I get around it.
    75 pointsBadges:
    report
  • Gamblersgobroke
    Thank you, I will try the above and let you know if it works.
    75 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: