Hi
I wonder if anyone can help - I think the answer is simple but it's been a really long day and I need to get this done!!
My select statement goes like this...
SELECT
client,
apar_id,
ext_inv_ref,
case when amount ='' then '0' else amount end,
currency,
convert (varchar,payment_date,112),
voucher_no,
convert (varchar,voucher_date,121)
from acuhistr
where client = 'SD'
and account = '9299'
I get the error: Server: Msg 8114, Level 16, State 5, Line 1
Error converting data type varchar to numeric.
I get why it's saying it, but I cannot work out how to convert the 'blank' into numeric or the numeric into varchar! Any ideas muchly appreciated