?
Solved

Resultant table not allowed to have more than one AutoNumber field.

Posted on 2004-09-03
7
Medium Priority
?
2,428 Views
Last Modified: 2012-05-05
Hi all,
I'm trying to make a new table,
I have the 'select' query that is working fine,
but when I tried to add 'into' (to put result in a new table)
in betwen 'select' and 'from';
it gives the msg:
"Resultant table not allowed to have more than one AutoNumber field."

here's the 'select' code that is working fine:
http://www.experts-exchange.com/Databases/MS_Access/Q_21118578.html

Thanks in advance :D
0
Comment
Question by:wmulyadi
[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
7 Comments
 
LVL 41

Accepted Solution

by:
shanesuebsahakarn earned 2000 total points
ID: 11977906
Create a new table with the fields you need. You can only have a single Autonumber field in any table, so add in a new primary key field if you want.

Now create a new query. Change it to an Append query and choose your new table. Add your previously saved query to this query when it prompts you to add tables. Select all of the fields you want to append, and specify which fields (in the new table) you want to append them to. Unless you have a good reason to, don't append to the autonumber field.
0
 
LVL 4

Expert Comment

by:Excalibur_Software
ID: 11978120
There are a few reason you are getting this error the most common is that your query has a autonumber in it and you have a autonumber in the table you are creating or you have two or more tables that have autonumbers. I can help you but I need to see your query and a list of fields in your tables

0
 
LVL 4

Expert Comment

by:Excalibur_Software
ID: 12108180
Is there any way I can help you more before you close this question?
0
 

Expert Comment

by:goldylamont
ID: 32323207
the accepted solution here is a great workaround and worked for me! this was driving me crazy! yeah, just create the table manually then use an append query (rather than create table query) to do the job
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data 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 …
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
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…
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…
Suggested Courses

764 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