Houstonwolf
Board Regular
- Joined
- Jul 28, 2006
- Messages
- 154
Hello. I've had much luck posting for help in Excel. This is my first post referencing Access.
A web developer and I are working on an online ocean-going container information system. I am responsible for the database and he is responsible for the web form and the hosting.
The source of the data is a continually updated Excel spreadsheet from a vendor. New containers are added, old (delivered) containers are dropped from each new report. Most entries in each new spreadsheet will be duplicates, however, because of the lead time getting a container across the ocean and half-way across the country. I've been able to import each new spreadsheet into my database, but it occurs to us now that ultimately, a unique container ID will eventually make its way back into the system.
MY first thought was to create multiple primary keys: the container ID and the part ID (SKU), because that actually would be primary. That combination will never happen more than once. I couldn't get it to work, so I adopted only the container ID field as the primary.
The web developer has suggested we create an auto-generated date field that, with each new import, will stamp the new entries with the import date. After 9 months, the entries could be purged. That's his preference in order to keep the DB from growing too large. I think 9 months is sufficient to ensure a duplicate container doesn't make it back into the system and is purged because the container ID conflicts with an existing entry.
I'm willing to do either. I just can't figure out how to do either one. Any advice on which approach is better and how I could do that to an existing table with over 3000 current entries?
A web developer and I are working on an online ocean-going container information system. I am responsible for the database and he is responsible for the web form and the hosting.
The source of the data is a continually updated Excel spreadsheet from a vendor. New containers are added, old (delivered) containers are dropped from each new report. Most entries in each new spreadsheet will be duplicates, however, because of the lead time getting a container across the ocean and half-way across the country. I've been able to import each new spreadsheet into my database, but it occurs to us now that ultimately, a unique container ID will eventually make its way back into the system.
MY first thought was to create multiple primary keys: the container ID and the part ID (SKU), because that actually would be primary. That combination will never happen more than once. I couldn't get it to work, so I adopted only the container ID field as the primary.
The web developer has suggested we create an auto-generated date field that, with each new import, will stamp the new entries with the import date. After 9 months, the entries could be purged. That's his preference in order to keep the DB from growing too large. I think 9 months is sufficient to ensure a duplicate container doesn't make it back into the system and is purged because the container ID conflicts with an existing entry.
I'm willing to do either. I just can't figure out how to do either one. Any advice on which approach is better and how I could do that to an existing table with over 3000 current entries?