I'm not sure if this the proper forum or even a good subject. I generate reporting every month for a credit card processor. These are Settlement Reports they use to pay the independant sales agents. I am trying to revamp the whole system from the ground up.
My existing process consists of pulling income amounts, expense item counts and costs and a few oddbal items and then posting all this to a report that carries out further calculations, splits the resulting balance and then adds and subtracts a few things that aren't subject to being split. It's quite a mess. I built this as I was learning Access.
I decided to try a bit of a different approach. I built a query that has all my income items and the total amount for each one on a merchant level. (I figure if I get it working there it should be easy to roll up to group totals). I have another query that pulls the majority of my Expense items, counts and costs as well as calculating the totals. I have a separate query that pulls volume totals and transaction counts. My final query just deals with Authorization data, counts, costs and totals.
Then I thought I would make a table called tblitemlist which has the fields itemid(autonumber), Itemcode(a short description), Description and a binary field for income or expense. I have an existing table called sortcodes that has two fields: sortcode(a unique id of each group, it is a foreign key to my main data table so we know where to roll merchant data to), and Name1, which is just the name of the group.
What I want now is to create a table (agentItem)ave fields for sortcode, itemcode(if this group uses this item) and Split(which will be a numerical field for the percent of the item the agent office gets credit for). Some itmes will be at a 60/40 split so I want .6, if they get the whole thing I would put in 1. I will use this in a query that will be the basis for the new reports. It would look like:
Income Item Amount Percent Total
Statement $200.00 60% $120.00
Expense Item Count Buyrate Cost Percent Total
Statement 20 $5.00 $100.00 60% $60.00
Payment
$60.00
This is much simplified using only one item. My main problem now is trying to find a way to build the agentItem table without doing a bunch of hand entry. I may have a flaw in the way I set things up. If so, I'm pretty much starting from scratch so I don't mind redoing some of it. Eventually I will need an interface to add relevant items to new agents as they come on board. Any suggestions are greatly appreciated.
Ken
My existing process consists of pulling income amounts, expense item counts and costs and a few oddbal items and then posting all this to a report that carries out further calculations, splits the resulting balance and then adds and subtracts a few things that aren't subject to being split. It's quite a mess. I built this as I was learning Access.
I decided to try a bit of a different approach. I built a query that has all my income items and the total amount for each one on a merchant level. (I figure if I get it working there it should be easy to roll up to group totals). I have another query that pulls the majority of my Expense items, counts and costs as well as calculating the totals. I have a separate query that pulls volume totals and transaction counts. My final query just deals with Authorization data, counts, costs and totals.
Then I thought I would make a table called tblitemlist which has the fields itemid(autonumber), Itemcode(a short description), Description and a binary field for income or expense. I have an existing table called sortcodes that has two fields: sortcode(a unique id of each group, it is a foreign key to my main data table so we know where to roll merchant data to), and Name1, which is just the name of the group.
What I want now is to create a table (agentItem)ave fields for sortcode, itemcode(if this group uses this item) and Split(which will be a numerical field for the percent of the item the agent office gets credit for). Some itmes will be at a 60/40 split so I want .6, if they get the whole thing I would put in 1. I will use this in a query that will be the basis for the new reports. It would look like:
Income Item Amount Percent Total
Statement $200.00 60% $120.00
Expense Item Count Buyrate Cost Percent Total
Statement 20 $5.00 $100.00 60% $60.00
Payment
$60.00
This is much simplified using only one item. My main problem now is trying to find a way to build the agentItem table without doing a bunch of hand entry. I may have a flaw in the way I set things up. If so, I'm pretty much starting from scratch so I don't mind redoing some of it. Eventually I will need an interface to add relevant items to new agents as they come on board. Any suggestions are greatly appreciated.
Ken