Solved

Append records into access table between existing records,

Posted on 2011-09-21
7
145 Views
Last Modified: 2012-05-12
I have an existing access table and I want to write an append query but i want to add these records between other records. I have them with record IDs so lets say i have records 1 -250 and I want to insert records at 25 how would i do that?
0
Comment
Question by:jlcannon
  • 4
  • 2
7 Comments
 
LVL 70

Expert Comment

by:KCTS
Comment Utility
If your database is written properly then you shouldn't have to - can you give a little more detail
0
 

Author Comment

by:jlcannon
Comment Utility
ok I have a table that has a fields called ID and I have it set to auto number so everytime a record is entered it increases by 1. I just found several records that were misplaced and i would like to get them in the database table in the proper order and to do that just an append will not work. I want to append them to a specific row. for instand I want in insert a record at 25 and thus making the current record 25 record 26 and the new roecord I am appending 25.
0
 
LVL 92

Expert Comment

by:Patrick Matthews
Comment Utility
jlcannon,

Out of curiosity, why does it matter?  An autonumber has no significance beyond providing a guaranteed-to-be-unique value.

Patrick
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:jlcannon
Comment Utility
matthewspatrick, i feel the same way, however i was asked if it could be done this way.
0
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 500 total points
Comment Utility
Yes, you can insert with a specified value for the autonumber column, but IMHO you shouldn't, because the actual value of the autonumber is irrelevant and should not be invested with any semantic value.  Take that answer back :)
0
 

Author Comment

by:jlcannon
Comment Utility
:P ill give that a shot but also, what would the insert into statement look like?
0
 

Author Closing Comment

by:jlcannon
Comment Utility
That worked for them and me Thanks.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

728 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

9 Experts available now in Live!

Get 1:1 Help Now