Solved

MS Access 2003 Query

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

726 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