Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Copy Rows in Access Table

Posted on 2012-03-15
6
Medium Priority
?
236 Views
Last Modified: 2012-03-16
I have a access table with rows with a month (DEC) in Column C.  I need to copy each row to months JAN through NOV.  So I then have all the data JAN through DEC.
0
Comment
Question by:mato01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 40

Expert Comment

by:als315
ID: 37727886
Can you upload your table and expected result?
0
 

Author Comment

by:mato01
ID: 37727912
Per your request.  Here is a sample.
Sample-Table.xlsx
0
 
LVL 40

Accepted Solution

by:
als315 earned 2000 total points
ID: 37728000
Check DB.
You should have index in table (PRODUCTS+YEAR+MONTH)
DBcopyrows.mdb
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37729462
als315,

You are always on top of your game!

;-)

Jeff
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37729508
<No Points wanted.>

The beauty of als315's solution is that all you have to do is maintain a table with your months.
;-)


One note though, you may want to start using the Month "Value"(1-12) instead of the Name (String).

This is so that you can eventually:
Combine the data values into a real date
Do calculations with these values.
(DateDiff, ...etc)
...etc

You can easily display the Name while referencing the number
MonthName(MonthValue)

;-)

JeffCoachman
0
 

Author Closing Comment

by:mato01
ID: 37730441
Worked perfectly in my scenario.  Thanks a lot.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

718 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