I posted this under the general ACCESS forum, before I caught that this forum for tables and relationships existed. I appreciate any help that can be offered.
I am a pretty new Access programmer, but have prior programming experience. One thing I observe is that I still think in terms of COBOL; FORTRAN etc, vs queries/updates etc.
I am designing an inventory DB system, but it is not for retail users perse. It is more of an item tracking system- recording the location-of moreso than the sale-of product.
Situation: 6 sales reps have samples of merchandise. I need to track whether that rep has transferred any of his inventory to another rep/ a dealer/ or home office.
Complications: It is possible for one rep to have more than one of the same item. (duplicates).
My design so far: 6 Master DBs- one for each rep. Key would be UPC, yet because of duplicates being allowed, I would need to add a sequence # (or some unique identifier).
DB master would have these fields: UPC/SEQ/ONHAND
The transaction files which dictate status (received/carryover/transfered/sold) would turn a switch on/off on the rep master DB.
TX files would have these fields: UPC/SEQ/STATUS/ID
PROCESSING: UPDATE query for TX to flip MSTR onhand switch off, but for adding new records(inventory) I need to increase the seq # if the UPC already exists.
REPORTING: would come from TX files as well as MSTR - probably thru a join/query process
PROBLEM: 1) I question my design
2) What is the easiest way to add records to the master
3) What is the easiest way to increment the sequence # (my idea is to check for duplicates with an on-hand switch = "y", then increment the sequence #)..
Appreciate any help. Hope this is the right place to ask, and appropriate to ask.
I am a pretty new Access programmer, but have prior programming experience. One thing I observe is that I still think in terms of COBOL; FORTRAN etc, vs queries/updates etc.
I am designing an inventory DB system, but it is not for retail users perse. It is more of an item tracking system- recording the location-of moreso than the sale-of product.
Situation: 6 sales reps have samples of merchandise. I need to track whether that rep has transferred any of his inventory to another rep/ a dealer/ or home office.
Complications: It is possible for one rep to have more than one of the same item. (duplicates).
My design so far: 6 Master DBs- one for each rep. Key would be UPC, yet because of duplicates being allowed, I would need to add a sequence # (or some unique identifier).
DB master would have these fields: UPC/SEQ/ONHAND
The transaction files which dictate status (received/carryover/transfered/sold) would turn a switch on/off on the rep master DB.
TX files would have these fields: UPC/SEQ/STATUS/ID
PROCESSING: UPDATE query for TX to flip MSTR onhand switch off, but for adding new records(inventory) I need to increase the seq # if the UPC already exists.
REPORTING: would come from TX files as well as MSTR - probably thru a join/query process
PROBLEM: 1) I question my design
2) What is the easiest way to add records to the master
3) What is the easiest way to increment the sequence # (my idea is to check for duplicates with an on-hand switch = "y", then increment the sequence #)..
Appreciate any help. Hope this is the right place to ask, and appropriate to ask.