B
Bettergains
Hello: in the examples below "Test_ID" is a text field and some of these are
empty. I am trying to test for empty / null fields and if null, convert to 0
(preferably 00000). My attempts below are returning #errors. I would prefer
to NOT to have to do this in two columns (ie, cvar them first, then clng
them) which DOES providde the correct result. Any ideas?
RD: IIf(CLng([Test_ID])=" ",Null,CLng([Test_ID]))
RD: iif(CLng(Test_ID) is null, null, CLng([Test_ID])))
RD: iif(CLng(Test_ID) is null, 0, CLng([Test_ID])))
empty. I am trying to test for empty / null fields and if null, convert to 0
(preferably 00000). My attempts below are returning #errors. I would prefer
to NOT to have to do this in two columns (ie, cvar them first, then clng
them) which DOES providde the correct result. Any ideas?
RD: IIf(CLng([Test_ID])=" ",Null,CLng([Test_ID]))
RD: iif(CLng(Test_ID) is null, null, CLng([Test_ID])))
RD: iif(CLng(Test_ID) is null, 0, CLng([Test_ID])))