Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

specified field could refer to more than one table listed...

Status
Not open for further replies.

g33kgrrl

Programmer
Jun 1, 2007
5
US
I have a query named qry_scorecard that joins a table and another qry - it runs fine. (I have scoured the SQL and it does not have duplicate field names.)

My second query (qry_scorecard_TEMP) retrives data from the original qry_scorecard. It is the only table or query being accessed. I keep getting the message that a field could refer to more than onr table listed in the FROM statement. Well, there is only one qry in the FROM statement. I even deleted the offending column(field) from the original qry_scorecard to test if there were two columns with the same name - I get the same error.

Any ideas?
 
I ended up renaming (with an alias) the offending colmn in both of the queries and it worked. How stupid. Gawd -I love programming some days......
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top