Solved

MS Access 2003 Query

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

910 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

22 Experts available now in Live!

Get 1:1 Help Now