Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3632258
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:30:10+00:00 2026-05-19T00:30:10+00:00

Hello I searched for an answer to this question but didn’t find any here.

  • 0

Hello
I searched for an answer to this question but didn’t find any here.
I’m using Access 2010.
Basically, I’ve got a table with reports, and reports have a revision number.
I found an answer about how to copy fields and update only one of them, but it looks somewhat like this:

INSERT INTO reports (fieldA, fieldB, fieldC, revision, fieldD, fieldE)
SELECT  fieldA, fieldB, fieldC, 2, fieldD, fieldE
FROM reports
WHERE <somecondition to select which report to copy>

Thing is I have a load of fields, so I’d like something that would look more like this:

INSERT INTO reports 
SELECT  *, revision=2
FROM reports
WHERE <somecondition to select which report to copy>

I know that code is incorrect; it’s just to describe what I would like. As in, a way to not have a huge SQL line listing all the fields, but only the one I want to change.
(I want to keep a copy of previous revisions in the same table)

Thanks in advance to whoever can help 🙂

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T00:30:11+00:00Added an answer on May 19, 2026 at 12:30 am

    I found an interesting alternative in this question, using a temporary table
    SQL clone record with a unique index

    DROP TABLE #tmp_MyTable
    
    SELECT * INTO #tmp_MyTable
    FROM MyTable
    WHERE MyIndentID = 165
    
    ALTER TABLE #tmp_MyTable
    DROP Column MyIndentID
    
    INSERT INTO MyTable
    SELECT * 
    FROM #tmp_MyTable
    

    I can do the same, dropping the primary key and updating the revision, then copying it back to my table.

    Not the solution I’m looking for, but an alternative way in the meantime.

    EDIT:

    Tried this solution without success:
    VBA tells me something along the lines of “fields with multiple values are not allowed with SELECT INTO instructions (runtime error 3838)”

    I have both an OLE field and an attachment field, which I suspect to be the cause of the error. But I need to keep them… :/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've searched here, but didn't see nothing like this error. I'm trying to populate
I have searched a lot of threads but i can't find any answer that
I have searched this web looking for an answer, but it seems that this
Ok, I've searched quite a bit, but seem unable to find an answer or
I have searched everywhere for an answer to this, but I think I must
I searched for a solution but could not find an answer for my specific
Hello I searched a bit here and didnt find anything for what i need...
Hello and thank you in advance. I know this is total noob question, and
I've searched for this, but haven't found a single command yet - how would
Hello guys I have a confusing question! If I'm using WCF to create a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.