MacDaddyNickP
Programmer
I have inherited a database which uses numerous nested queries to execute business logic. In drilling down into the database I have identified some of the logic in the queries, which is implemented using IIf() functions to test the values of fields in the underlying queries/tables against each other. Now my problem is this, when I look at the available fields in the QBE window in one of the underlying queries, four fields are listed that do not correspond to fields in the underlying query when that query is viewed in the QBE grid. In other words, Access is putting four additional fields into the "master" query view of the underlying query. I am stumped... The query is not defined dynamically in code, so its definition isn't changed, it just doesn't make sense. Can anyone offer a suggestion as to how this could be happening. When I delete the underlying query from the master query and then re-add it to the master query QBE screen, the phantom fields are gone! Help!