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

x
?
Solved

Access Record with Date Range of Multiple Months to Single Month

Posted on 2010-08-31
10
Medium Priority
?
362 Views
Last Modified: 2012-05-10
I have trade data that includes multiple months on one record. For example

9/1/2010 to 3/31/2011
I need to split the data into singular months and copy all other dataon record.

9/1/2010 to 9/30/2010
10/1/2010 to 10/31/2010
ect.
0
Comment
Question by:elinn
[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
10 Comments
 
LVL 3

Expert Comment

by:karephre
ID: 33569652
can you provide a screen shot of the table.
0
 

Author Comment

by:elinn
ID: 33569742
Sure here you go. Im pretty inexperienced. So keep that in mind.
screenshot.bmp
0
 
LVL 3

Expert Comment

by:karephre
ID: 33569950
so you want each enddate  to have its on table? If this is the case all you have to do is make a copy of the table structure. then build a append query to copy all data thats between 1st and the last day of that month.  
0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:elinn
ID: 33570005
I need to take one trade, for example ID #4446, and add duplicate lines with the date ranges for that trade by month. So that one trade would be expanded to 7 lines within the table.

4446          9/1/2010       9/30/2010
4446          10/1/2010      10/31/2010
4446          11/1/2010      11/30/2010
4446          12/1/2010      12/31/2010
4446          1/1/2011         1/31/2011
4446          2/1/2011         2/28/2011
4446          3/1/2011        3/31/2011
0
 
LVL 3

Expert Comment

by:karephre
ID: 33570009
if you just want to view it in that format. you can just build a select query in that date range.
0
 

Author Comment

by:elinn
ID: 33570738
I really want something that will systematically copy the record and break the record into 7 identical records with different month ranges. If I can make a select query like this let me know how and I can easily append into the table.
0
 
LVL 3

Expert Comment

by:karephre
ID: 33571452
You may have to export it to Excel to do the changes with the functions then import it back in.
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 200 total points
ID: 33571637
Then this really needs to be a One to many design, with a "One" table (The Parent, Trades) and a "Many" table (the Child, TradeDates)

Here is a sample
I could have used a loop but I left it this way so that you could see the Date range formula progression throughout the months.

Examine it carefully, I am sure you will be able to adapt it to work in your database.

;-)

JeffCoachman


Access-EEQ-26441869--Generate-Bl.mdb
0
 
LVL 93

Expert Comment

by:Patrick Matthews
ID: 36157664
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
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…

715 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