on 05-24-2011 2:15 PM
I am getting a bad time format string error. I run the check and it gives me no errors found. When I refresh the report is when I recieve the bad time format string error. I have a feeling it is a null value I just do not know how to write the if statement. Please help. Here is the actual code:
Minute(CTime ("00:" + {EVAL_COMMENTS_Duration.COMMENTS}))* 60 + Second (CTime ("00:" + ({EVAL_COMMENTS_Duration.COMMENTS})))
To cater for nulls try
If isnull|( {EVAL_COMMENTS_Duration.COMMENTS}) or {EVAL_COMMENTS_Duration.COMMENTS} = '' then 0 else
Minute(CTime ("00:" + {EVAL_COMMENTS_Duration.COMMENTS}))* 60 + Second (CTime ("00:" + ({EVAL_COMMENTS_Duration.COMMENTS})))
Ian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can check for nulls:
IF isnull({EVAL_COMMENTS_Duration.COMMENTS}) or TRIM({EVAL_COMMENTS_Duration.COMMENTS})="" then
TIme(0,0,0)
else
Minute(CTime ("00:" + {EVAL_COMMENTS_Duration.COMMENTS}))* 60 + Second (CTime ("00:" + ({EVAL_COMMENTS_Duration.COMMENTS})))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.