Hi all,
I'm encountering some special issues on an Access 2007 VBA application I am writing, and having some issues and challenges correctly creating the tables to relate my data. I believe at the end of this I should have four tables total, but we'll see.
In a nutshell: I work for a warehouse that has drivers making deliveries to grocery stores. We have a numbering system that we use to refer to routes our delivery drivers run. We also have a customer table that identifies a customer number and details related to the customer.
I have a third table identifying a many to many relationship. Some stores receive deliveries many times per week across multiple stores. Some stores only receive one delivery per week. I'm using this third table to identify the relationships between stores and routes.
Here's the problem I am running into:
Suppose I have stores A, B, C and D on a route. The defaults table lists all of the possible deliveries, and let's say "C" has decided it wants to skip this particular delivery. Since I am tracking case loads and the time that a driver spends at each store, my calculations would be corrupt if I attempt to include a delivery time here since the truck was never loaded with product to deliver to this store!
So here's what I'd love to have answered:
- It seems the table defining the many to many relationship would be useful as a set of "defaults". So if I had a form in access a user could identify what stores are actually going to receive deliveries and the number of products assigned to the store, we can avoid a lot of tedious data entry by having the default stores load into a form.
- Sometimes we have a special delivery to a customer that normally isn't on a route, and gets slotted in, so suppose we have delivieres to A, B, X, C then D, how can I change this?
- What visual basic code do I need to write to make the 4th form useful for all of this?
- Finally - how do I avoid an explosive amount of data from erupting? I have 190 deliveries to make per week on average. At an average of 10 stores a route, this database could get huge quickly.
Thanks for your input and wisdom.
I'm encountering some special issues on an Access 2007 VBA application I am writing, and having some issues and challenges correctly creating the tables to relate my data. I believe at the end of this I should have four tables total, but we'll see.
In a nutshell: I work for a warehouse that has drivers making deliveries to grocery stores. We have a numbering system that we use to refer to routes our delivery drivers run. We also have a customer table that identifies a customer number and details related to the customer.
I have a third table identifying a many to many relationship. Some stores receive deliveries many times per week across multiple stores. Some stores only receive one delivery per week. I'm using this third table to identify the relationships between stores and routes.
Here's the problem I am running into:
Suppose I have stores A, B, C and D on a route. The defaults table lists all of the possible deliveries, and let's say "C" has decided it wants to skip this particular delivery. Since I am tracking case loads and the time that a driver spends at each store, my calculations would be corrupt if I attempt to include a delivery time here since the truck was never loaded with product to deliver to this store!
So here's what I'd love to have answered:
- It seems the table defining the many to many relationship would be useful as a set of "defaults". So if I had a form in access a user could identify what stores are actually going to receive deliveries and the number of products assigned to the store, we can avoid a lot of tedious data entry by having the default stores load into a form.
- Sometimes we have a special delivery to a customer that normally isn't on a route, and gets slotted in, so suppose we have delivieres to A, B, X, C then D, how can I change this?
- What visual basic code do I need to write to make the 4th form useful for all of this?
- Finally - how do I avoid an explosive amount of data from erupting? I have 190 deliveries to make per week on average. At an average of 10 stores a route, this database could get huge quickly.
Thanks for your input and wisdom.