Hi all, I'm having some issues with populating a column in a database with a query.
The idea is that it would fill in certain terms depending on a value of another column in said database that is also populated by a query.
I've managed to get said column populated by a query which subtracts 2 dates found in said database and populates the result in said column.
However, now I'm trying to add another column that would turn said results into a specified term.
It works, somewhat, however it seems to randomly mix and match what term it wants to place in said field.
I've tried the following query criteria:
and
However they both give me the same results.
Here's an image:
tinypic(dot)com/r/miie4j/9
Notice how it randomly gives a 5 the term "jaarverslag buiten termijn" when it should be "normaal", same with the 3, meanwhile it gives 106 a "normaal" when it should be "jaarverslag buiten termijn".
Please help!
The idea is that it would fill in certain terms depending on a value of another column in said database that is also populated by a query.
I've managed to get said column populated by a query which subtracts 2 dates found in said database and populates the result in said column.
However, now I'm trying to add another column that would turn said results into a specified term.
It works, somewhat, however it seems to randomly mix and match what term it wants to place in said field.
I've tried the following query criteria:
Code:
IIf([Database]![Aantal maanden sinds laatste verslag]="999";"Dossier afgesloten";IIf([Database]![Aantal maanden sinds laatste verslag] Between "0" And "12";"Normaal";IIf([Database]![Aantal maanden sinds laatste verslag] Between "11" And "999";"Jaarverslag buiten termijn";"")))
Code:
IIf([Database]![Aantal maanden sinds laatste verslag]="999";"Dossier afgesloten";IIf([Database]![Aantal maanden sinds laatste verslag]<="12";"Normaal";"Jaarverslag buiten termijn"))
Here's an image:
tinypic(dot)com/r/miie4j/9
Notice how it randomly gives a 5 the term "jaarverslag buiten termijn" when it should be "normaal", same with the 3, meanwhile it gives 106 a "normaal" when it should be "jaarverslag buiten termijn".
Please help!