Link to home
Start Free TrialLog in
Avatar of elinn
elinn

asked on

Access Record with Date Range of Multiple Months to Single Month

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.
Avatar of karephre
karephre

can you provide a screen shot of the table.
Avatar of elinn

ASKER

Sure here you go. Im pretty inexperienced. So keep that in mind.
screenshot.bmp
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.  
Avatar of elinn

ASKER

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
if you just want to view it in that format. you can just build a select query in that date range.
Avatar of elinn

ASKER

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.
You may have to export it to Excel to do the changes with the functions then import it back in.
ASKER CERTIFIED SOLUTION
Avatar of Jeffrey Coachman
Jeffrey Coachman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.