Hello everyone,
I was asked by my boss at work who knows I have some experience with Microsoft Access to put together a database tool (I'm using Access 2010 which is new to me, previously I have used Access 2003) to monitor the number of processed invoices for various locations on a daily basis. The idea is that he should be able to have a good overview of backlogs and similar of the various locations.
The idea is that a regular user responsible for each location (or one responsible for several, it's not really important here) should post the number of processed invoices and a team leader let's say should input the number of new invoices received. All this done on a daily basis (workdays only, naturally).
At first it seemed relatively straightforward to me, but the more I think of it, the more complicated it seems.
I want to have one form in which a user can input the number of invoices processed. If an entry already exists for the date/location selected, the old results should pop up in case an error needs to be corrected or similar. Perhaps it would be better if only an admin could do this and from a different form, though.
A similar (near identical) form should exist where it's possible to input the number of incoming invoices for the day.
My boss should have a view where he can see statistics on current backlogs. He should also be able to see some graphs on how the backlog has varied on a monthly basis and such.
So how should I approach this problem? I was thinking of using two tables, one for processed invoices and one for the inflow of new invoices. Or is that a bad idea? I'm not really sure what to use as primary key as no field is unique in itself as each date has multiple locations and each location multiple dates, although a composite key of date and location would be unique. I have never really used a composite key before, so I find it confusing. Or is it better to stick with some kind of auto-incremental number?
More locations will be added with time, so the number of locations will not be constant.
I have never constructed any similar databases before, and the more I think of it, the more confused I get, so I apologise if I omitted some important details here. Any help to get me in the right direction would be greatly appreciated.
Thanks,
Per
I was asked by my boss at work who knows I have some experience with Microsoft Access to put together a database tool (I'm using Access 2010 which is new to me, previously I have used Access 2003) to monitor the number of processed invoices for various locations on a daily basis. The idea is that he should be able to have a good overview of backlogs and similar of the various locations.
The idea is that a regular user responsible for each location (or one responsible for several, it's not really important here) should post the number of processed invoices and a team leader let's say should input the number of new invoices received. All this done on a daily basis (workdays only, naturally).
At first it seemed relatively straightforward to me, but the more I think of it, the more complicated it seems.
I want to have one form in which a user can input the number of invoices processed. If an entry already exists for the date/location selected, the old results should pop up in case an error needs to be corrected or similar. Perhaps it would be better if only an admin could do this and from a different form, though.
A similar (near identical) form should exist where it's possible to input the number of incoming invoices for the day.
My boss should have a view where he can see statistics on current backlogs. He should also be able to see some graphs on how the backlog has varied on a monthly basis and such.
So how should I approach this problem? I was thinking of using two tables, one for processed invoices and one for the inflow of new invoices. Or is that a bad idea? I'm not really sure what to use as primary key as no field is unique in itself as each date has multiple locations and each location multiple dates, although a composite key of date and location would be unique. I have never really used a composite key before, so I find it confusing. Or is it better to stick with some kind of auto-incremental number?
More locations will be added with time, so the number of locations will not be constant.
I have never constructed any similar databases before, and the more I think of it, the more confused I get, so I apologise if I omitted some important details here. Any help to get me in the right direction would be greatly appreciated.
Thanks,
Per