Solved

MS Access 2003 Query

Posted on 2016-09-29
2
36 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 39

Accepted Solution

by:
als315 earned 500 total points
Comment Utility
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
Comment Utility
Thanks again!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
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…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

6 Experts available now in Live!

Get 1:1 Help Now