G
Guest
Greetings,
I have a question for the group that I hope somone can help with.
I have this query I'm wrestling with:
The query has a criteria value that comes from a combobox value on a user
form.
The combobox allows users to select a client code to filter the query for a
report. The combobox rowsource property comes from a query:
SELECT tblClients.UNOSCd, IIf([UNOSCd]="ClinImmune","NOT 'COPM'",[UNOSCd])
AS CenterValue
FROM tblClients;
The combobox's bound property is set to column 2
So the Combobox choices look like this:
Column1 (visible column): COUC, COSL, COCH, COPM, ClinImmune
Column 2 (bound Column): COUC, COSL, COCH, COPM, NOT 'COPM'
It all works, except the last choice ClinImmune / NOT 'COPM'
If NOT 'COPM' is typed into the query, it works fine.
If NOT 'COPM' comes from the combobox value, it does not.
What is going on? Any help will be greatly appreciated.
I have a question for the group that I hope somone can help with.
I have this query I'm wrestling with:
The query has a criteria value that comes from a combobox value on a user
form.
The combobox allows users to select a client code to filter the query for a
report. The combobox rowsource property comes from a query:
SELECT tblClients.UNOSCd, IIf([UNOSCd]="ClinImmune","NOT 'COPM'",[UNOSCd])
AS CenterValue
FROM tblClients;
The combobox's bound property is set to column 2
So the Combobox choices look like this:
Column1 (visible column): COUC, COSL, COCH, COPM, ClinImmune
Column 2 (bound Column): COUC, COSL, COCH, COPM, NOT 'COPM'
It all works, except the last choice ClinImmune / NOT 'COPM'
If NOT 'COPM' is typed into the query, it works fine.
If NOT 'COPM' comes from the combobox value, it does not.
What is going on? Any help will be greatly appreciated.