Good afternoon.
I'm new to the forum and have search to find the answer but maybe I'm not searching correctly. But, I am finding alot of very helpful, knowledgeable people here helping.
So, here is what I'm trying to do:
I have a database to enter Orders into. We pull down customers from pull down (from Table:Customers) into Table:OrderDetails. We enter Products from a subform (from Table:Products) into Table:Orders. So, now we have a list of ordered products.
On top of that, each product has a list of assigned tasks (a multiselect pulldown menu) from Table:Tasks entered into the Table:Product for each product.
I'm stuck figuring out how to make this happen:
When an order is entered, how can I make a list of tasks (assigned for each product for each order) populated automatically.
For example:
Order A = Company B orders
6 Product A (which has Task A, Task C, and Task E assigned to it)
4 Product B (which has Task A, Task B, and Task D assigned to it)
Order B = Company C orders
10 Product B (which has Task A, Task B, and Task D assigned to it)
5 Product C (which has Task A, Task B, and Task E assigned to it)
I want Table:Tasks to be populated with
Task A - Product A - Order A x6
Task A -Product B - Order A x4
Task A -Product B - Order B x10
Task A -Product C - Order B x5
Task B - Product B - Order A x4
Task B -Product B - Order B x10
Task B -Product C- Order B x5
Task C - Product A- Order A x6
Task D -Product B- Order A x4
Task D -Product B- Order B x10
Task D -Product C - Order B x5
Task E - Product A - Order A x6
I know I could enter these tasks manually, but I want to Table:Task populated automatically with the info from the other tables.
Is this possible?
=+=+=+=+=+=+=+=+=+=+=+=+
ADDITIONALLY I want to be able to track how long it takes to complete tasks. I could see a screen for entering this data to look like:
Form:Task Details
Button:New Details
Search Box: enter task AutoNumber and it selects that task from Table:Task
Button:Start = enters start date and time
Button:Complete = enters completed date and time
That shouldn't be too hard for me to figure out.
I then want to calculate averages of task times:
Task A average time =
(Task A, Product A, Order A)
+ (Task A, Product B, Order A)
+ (Task A, Product B, Order B)
+ (Task A, Product C, Order B)
======
total / 25 (25 is the number of parts that used Task A)
=+=+=+=+=+=+=+=+=+=+=+=+
Then the Product Task Time get calculated:
(Task A average time + Task C average time + Task E average time) X 6
I'm sure I over-shared but one thing I've picked up by scouring the forum is that more info usually better than less.
to recap: that main question is regarding Table:Task autopopulation.
But if you have advice for the other portions, I'm all ears.
Thank you very much