I have problems with a formula that checks if a table field in the database are empty.
I must find a way to recognize if the field is empty or contains numbers. I must recognize some of the numbers and not choose them and also if the field is empty !
My field looks like:
--------------------------------------------
TYPE ID
---- --
DONE 55
DONE 12
DONE 1
DONE 0
DONE
DONE 4
DONE
DONE 12
---------------------------------------------
And my formula:
---@formula-------
if {TEST.TYPE} = "DONE" and {TEST.ID} <> [56,55,58,59,72] then datediff('s',{@test_start_time},{@test_stop_time})
else if {TEST.TYPE} = "DONE" and {CC_CLIENTS.ID} ISNULL then datediff('s',{@test_start_time},{@test_stop_time})
else 0
------------------
* How do i get the formula to recognise the empty fields ?
* Why can´t i use the isnull ?
The field only contains numbers and is numeric.
I´m using Crystal reports 8.5
The database is Oracle 8
I hope someone have a solution and can help me !![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Regards / Gazol
I must find a way to recognize if the field is empty or contains numbers. I must recognize some of the numbers and not choose them and also if the field is empty !
My field looks like:
--------------------------------------------
TYPE ID
---- --
DONE 55
DONE 12
DONE 1
DONE 0
DONE
DONE 4
DONE
DONE 12
---------------------------------------------
And my formula:
---@formula-------
if {TEST.TYPE} = "DONE" and {TEST.ID} <> [56,55,58,59,72] then datediff('s',{@test_start_time},{@test_stop_time})
else if {TEST.TYPE} = "DONE" and {CC_CLIENTS.ID} ISNULL then datediff('s',{@test_start_time},{@test_stop_time})
else 0
------------------
* How do i get the formula to recognise the empty fields ?
* Why can´t i use the isnull ?
The field only contains numbers and is numeric.
I´m using Crystal reports 8.5
The database is Oracle 8
I hope someone have a solution and can help me !
Regards / Gazol