This is really confusing me. I'm trying to reference data on an open form and use it as criteria in my query and for some reason it's not returning any records.
I have the unbounded form opened with unbound combobox (cmbOOffice) populated. However, the query is not returning any data when I know for a fact there is at least one record in the tblMainCase table where OriginOffice matches the current text displayed in the cmbOOffice field on the splash form.
SELECT tblMainCase.*, tblMainCase.OriginOffice, tblMainCase.CaseType, tblMainCase.Client
FROM tblMainCase
WHERE (((tblMainCase.OriginOffice)=[Forms]![splash]![cmbOOffice]))
ORDER BY tblMainCase.Client;
When I replace [Forms]![splash]![cmbOOffice] with "New York", it returns the record. On the other hand, even though "New York" is displayed in the cmbOOffice field, it wont. I think for some reason the query is not picking up on the data in the field. Why is this? Am I missing something?
Thanks for any help