Hi,
I have a subform and when field [Status] is Null I would like to append all records from table melding. I have some trouble with the criteria...
Does anybody understand why this does not work in an append query:
The result in the datasheet is no records at all, and I expected all the records
However, the query does work correctly if I change the "*" into "Bij VWA":
The result in datasheet are all the records with [status] "Bij VWA".
It works also fine when I simplify it:
The result in datasheet are all the records.
But why doesn't the first where-clause work correctly???
I hope someone can help me with this!
Thanks in advance,
Tep
I have a subform and when field [Status] is Null I would like to append all records from table melding. I have some trouble with the criteria...
Does anybody understand why this does not work in an append query:
Code:
WHERE (((melding.status)=IIf([Forms]![Versie keuze]![Versiebeheer subform].[Form]![Status] Is Not Null,[Forms]![Versie keuze]![Versiebeheer subform].[Form]![Status],"*")))
The result in the datasheet is no records at all, and I expected all the records

However, the query does work correctly if I change the "*" into "Bij VWA":
Code:
WHERE (((melding.status)=IIf([Forms]![Versie keuze]![Versiebeheer subform].[Form]![Status] Is Not Null,[Forms]![Versie keuze]![Versiebeheer subform].[Form]![Status],"Bij VWA")))
The result in datasheet are all the records with [status] "Bij VWA".
It works also fine when I simplify it:
Code:
WHERE (((melding.status) Like "*"))
The result in datasheet are all the records.
But why doesn't the first where-clause work correctly???
I hope someone can help me with this!
Thanks in advance,
Tep