Solved

Cannot define field more than once

Posted on 2013-12-12
3
2,003 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

729 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