Solved

MS Access 2003 Query

Posted on 2016-09-29
2
65 Views
Last Modified: 2016-09-29
I have a table called LineItemDetail in Access 2003.  I want to copy the Fiscal Year 2016 records back into the LineItemDetail table with a set of records that now have 2017 in the Fiscal Year column.
LineItemDetail.xls
0
Comment
Question by:submarinerssbn731
2 Comments
 
LVL 40

Accepted Solution

by:
als315 earned 500 total points
ID: 41822107
You can try this query:
INSERT INTO LineItemDetail ( AccountID, AccountNumber, Detail, Jan, Feb, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, [Dec], Updatedate, FiscalYear )
SELECT LineItemDetail.AccountID, LineItemDetail.AccountNumber, LineItemDetail.Detail, LineItemDetail.Jan, LineItemDetail.Feb, LineItemDetail.Apr, LineItemDetail.May, LineItemDetail.Jun, LineItemDetail.Jul, LineItemDetail.Aug, LineItemDetail.Sep, LineItemDetail.Oct, LineItemDetail.Nov, LineItemDetail.Dec, LineItemDetail.Updatedate, 2017 AS FiscalYear
FROM LineItemDetail
WHERE (((LineItemDetail.FiscalYear)=2016));

Open in new window

0
 

Author Closing Comment

by:submarinerssbn731
ID: 41822138
Thanks again!
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

840 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