G
Guest
I can run my query with NZ function from within Access however cannot run it
via OLEDB connection even though its using Jet DB engine.
Here is my query, I tried changing it to not use NZ but nothing seems to
work the same.
SELECT ID, T1 & IIF(NZ(T2,'')='','','--') & T2 & IIF(NZ(T3,'')='','','--') &
T3 AS KWDesc FROM tblKWFlat ORDER BY T1, T2, T3;
Basically I need three columns if not null to be separated by '--'
e.g.
abc
abc--def
abc--def--ghi
Any ideas?
via OLEDB connection even though its using Jet DB engine.
Here is my query, I tried changing it to not use NZ but nothing seems to
work the same.
SELECT ID, T1 & IIF(NZ(T2,'')='','','--') & T2 & IIF(NZ(T3,'')='','','--') &
T3 AS KWDesc FROM tblKWFlat ORDER BY T1, T2, T3;
Basically I need three columns if not null to be separated by '--'
e.g.
abc
abc--def
abc--def--ghi
Any ideas?