I asume you use 'Microsoft DAO x.x Object Library'.DBEngine for accessing M$ Access, I had the same problem (Attain 3.60) and fixed it by replacing in the NULL in the Query and it worked for me. This is how I did it:
Query := 'SELECT IIF( Table.StringField is null,"0",Table.StringField) as NewStringName, IIF( Table.DateField is null,0,Table.DateField) as NewDateName, FROM Table ORDER BY Table.StringField,Table.DateField';
It was my mistake. IIF works. But I get some problem with it.
I have one field of type memo in my table. I handeled it like
iif(table1.memofield is null, "0", table1.memofield)
Problem is that I am getting only some portion of the memofield(when it is not null)
Comments
I asume you use 'Microsoft DAO x.x Object Library'.DBEngine for accessing M$ Access, I had the same problem (Attain 3.60) and fixed it by replacing in the NULL in the Query and it worked for me. This is how I did it:
Rvduuren
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I checked 'Maintain Defaults' option. But still getting an error.
I also tried IIF. But it gives me an following error.
'No value given for one or more required parameter'
I am using
'Microsoft ActiveX Data Objects Recordset 2.5 Library'.Recordset
Please help
Hope this helps. Greetz
It was my mistake. IIF works. But I get some problem with it.
I have one field of type memo in my table. I handeled it like
iif(table1.memofield is null, "0", table1.memofield)
Problem is that I am getting only some portion of the memofield(when it is not null)
Please help.