Solved

Cannot define field more than once

Posted on 2013-12-12
3
2,059 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
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…

624 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