L
Larry
I am trying to help someone with their database. They have a complex query
which pulls columns from several other queries/tables and combines them into
one query.
The strange thing is that one of the columns comes up as "qryWord.Attorney",
instead of simply "Attorney".
I have looked at this thing for some time now and have not found any other
columns named "Attorney". I even converted the query to SQL and used a text
editor to look for all occurrences of the word "Attorney". I only found the
one name "Attorney" along with several other columns named like
"AttorneyInnitials", "AttorneyID", etc.
I also exported the query to Excel and looked at the headings there, and
there is no "Attorney" column heading. The one field which is named
"Attorney" becomes "qryWord.Attorney".
I have also removed every field in the query, except for the "Attorney"
field. Yet, it still shows up as "qryWord.Attorney" in the column heading.
The only way I can get it to show as "Attorney", is to remove one of the
queries being joined. Even if no field from that query is in the data grid,
it still shows up as query.field in the column heading, the query can't be
part of the relationship at all for it to work.
The query that I remove, to get this to work, doesn't even have an Attorney
field in it at all. And of course, it's required, so I can't really remove
it as a solution.
So what the heck can be going on? Any ideas?
which pulls columns from several other queries/tables and combines them into
one query.
The strange thing is that one of the columns comes up as "qryWord.Attorney",
instead of simply "Attorney".
I have looked at this thing for some time now and have not found any other
columns named "Attorney". I even converted the query to SQL and used a text
editor to look for all occurrences of the word "Attorney". I only found the
one name "Attorney" along with several other columns named like
"AttorneyInnitials", "AttorneyID", etc.
I also exported the query to Excel and looked at the headings there, and
there is no "Attorney" column heading. The one field which is named
"Attorney" becomes "qryWord.Attorney".
I have also removed every field in the query, except for the "Attorney"
field. Yet, it still shows up as "qryWord.Attorney" in the column heading.
The only way I can get it to show as "Attorney", is to remove one of the
queries being joined. Even if no field from that query is in the data grid,
it still shows up as query.field in the column heading, the query can't be
part of the relationship at all for it to work.
The query that I remove, to get this to work, doesn't even have an Attorney
field in it at all. And of course, it's required, so I can't really remove
it as a solution.
So what the heck can be going on? Any ideas?