Solved

Cannot define field more than once

Posted on 2013-12-12
3
1,700 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

760 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

21 Experts available now in Live!

Get 1:1 Help Now