I need a recommendation on how I could create a report.
Currently, I'm creating a report in Access where I import a file containing 350,000 rows (and growing), and run various queries to report the data.
I need to add a new element, and I'm not sure how to do this. I'm not sure if Access is still the best option anymore.
Here is an example of what I am needing to do:
(1) I need to identify the records that have a duplicate id number. This number is quite large. It represents about 1/3 of the total file. Thats easy to do. For example:
[blue]
ID AMOUNT DATE
022 100 1/1/03
022 150 7/1/05
091 100 1/1/03
091 130 5/1/04
091 150 8/1/05
[/blue]
(2) Once I identify the records, I need to do two things:
* determine the difference in amount between the most recent record, and the most previous record to that.. and then multiply it by a certain factor depending on the year
* determine the original amount (amount on the first record) and multiply it by a certain amount)
For example, using ID '091' above:
(150 - 130) * 3 ('3' is used if the date was in 2005)
(130 - 100) * 2 ('2' is used if the date was in 2004)
(100) * 1 ('1' is used if the date was in 2003)
The question is, is this something I can do in Access. If so, I'm assuming I would have to bring vbscript into use. If not, any recommendations.
Thanks,
Tim
Currently, I'm creating a report in Access where I import a file containing 350,000 rows (and growing), and run various queries to report the data.
I need to add a new element, and I'm not sure how to do this. I'm not sure if Access is still the best option anymore.
Here is an example of what I am needing to do:
(1) I need to identify the records that have a duplicate id number. This number is quite large. It represents about 1/3 of the total file. Thats easy to do. For example:
[blue]
ID AMOUNT DATE
022 100 1/1/03
022 150 7/1/05
091 100 1/1/03
091 130 5/1/04
091 150 8/1/05
[/blue]
(2) Once I identify the records, I need to do two things:
* determine the difference in amount between the most recent record, and the most previous record to that.. and then multiply it by a certain factor depending on the year
* determine the original amount (amount on the first record) and multiply it by a certain amount)
For example, using ID '091' above:
(150 - 130) * 3 ('3' is used if the date was in 2005)
(130 - 100) * 2 ('2' is used if the date was in 2004)
(100) * 1 ('1' is used if the date was in 2003)
The question is, is this something I can do in Access. If so, I'm assuming I would have to bring vbscript into use. If not, any recommendations.
Thanks,
Tim