A
AJ
I have two tables, one with Transaction Data and the other table has Client
Names.
I need a Dynamic Counter Function that is based on a series of Select
Queries (which are used to refine the data...and sort it...from the
Transaction table by time-period, amount, etc.).
If the data from the last Select Query looks like this:
ClientID Date Amount TrxID (unique)
4001 2/18/09 56.00 6119
4024 1/11/09 70.00 7272
4024 5/20/09 200.00 6834
4024 8/08/09 65.00 7864
4026 10/1/09 82.00 7911
4031 6/18/09 50.00 7013
4031 7/10/09 60.00 7249
... ... ... ....
I would like the resulting Data after the Dynamic Record Counter to look
like this:
ClientID Date Amount TrxID (unique) Counter
4001 2/18/09 56.00 6119 1
4024 1/11/09 70.00 7272 1
4024 5/20/09 200.00 6834 2
4024 8/08/09 65.00 7864 3
4026 10/1/09 82.00 7911 1
4031 6/18/09 50.00 7013 1
4031 7/10/09 60.00 7249 2
... ... ... ....
...
I don't think that I can create a Make Table Query first, because I need to
run this query multiple times for different time periods, so if I Make Table
each time, the dbase will be polluted with redundant data. To give you and
idea of the scope of records, there are 40K+ total records in the Transaction
Table and approximately 17K records that meet the current selection criteria
in the Select Query where I want to apply the Dynamic Counter.
Please Help!!! I have been trying everything I can find, but can't seem to
get this to work.
Names.
I need a Dynamic Counter Function that is based on a series of Select
Queries (which are used to refine the data...and sort it...from the
Transaction table by time-period, amount, etc.).
If the data from the last Select Query looks like this:
ClientID Date Amount TrxID (unique)
4001 2/18/09 56.00 6119
4024 1/11/09 70.00 7272
4024 5/20/09 200.00 6834
4024 8/08/09 65.00 7864
4026 10/1/09 82.00 7911
4031 6/18/09 50.00 7013
4031 7/10/09 60.00 7249
... ... ... ....
I would like the resulting Data after the Dynamic Record Counter to look
like this:
ClientID Date Amount TrxID (unique) Counter
4001 2/18/09 56.00 6119 1
4024 1/11/09 70.00 7272 1
4024 5/20/09 200.00 6834 2
4024 8/08/09 65.00 7864 3
4026 10/1/09 82.00 7911 1
4031 6/18/09 50.00 7013 1
4031 7/10/09 60.00 7249 2
... ... ... ....
...
I don't think that I can create a Make Table Query first, because I need to
run this query multiple times for different time periods, so if I Make Table
each time, the dbase will be polluted with redundant data. To give you and
idea of the scope of records, there are 40K+ total records in the Transaction
Table and approximately 17K records that meet the current selection criteria
in the Select Query where I want to apply the Dynamic Counter.
Please Help!!! I have been trying everything I can find, but can't seem to
get this to work.