Solved

Cannot define field more than once

Posted on 2013-12-12
3
1,751 Views
Last Modified: 2013-12-12
Hi,

I have a make table query with the below SQL

The error i get is "cannot define field more than once"

Whatis this and can i work around it?

Many thanks

SELECT [INPUT D2 DATA].*, [Calculation D2].*, [Calculation D2].[Overal RAG], [Calculation D2].[Product Risk decision], [Calculation D2].[Business Risk Score], [Calculation D2].[Score selection], [Calculation D2].[Recognised structure], [Calculation D2].LOB, [Calculation D2].Country INTO JoinedByClientType
FROM [INPUT D2 DATA], [Calculation D2]
WHERE (((Left([INPUT D2 DATA].[Customer Type],255))=Left([Calculation D2].[Client Type],255)));
0
Comment
Question by:Seamus2626
  • 2
3 Comments
 
LVL 61

Expert Comment

by:mbizup
ID: 39713784
Get rid of the asterisks (*) and select only those fields you need, taking care to select each field only once.
0
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 39713789
For starters, try completely taking out the [INPUT D2 DATA].* and [Calculation D2].*, and see if that gives you the results you need.  If not, start adding fields individually until you have all of the fields you need, again taking care to not double-select any fields.
0
 

Author Closing Comment

by:Seamus2626
ID: 39713874
thanks
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now