I wonder if anyone can help me with this as I am new to ACCESS and VBA.
I need to populate my Jobs table using data from 2 other tables...I think it needs to be done in VBA but I am open to suggestions...
This is my idea of the subroutine structure:
Basically each Order of each Product requires a number of jobs/processes to complete it.
So I need a full list in the Jobs table of all the jobs/processes with thier times and costs.
Please see attached database.
I need to populate my Jobs table using data from 2 other tables...I think it needs to be done in VBA but I am open to suggestions...
This is my idea of the subroutine structure:
Code:
repeat loop for each record in the ORDERS table
get the ID, PRODUCT and ORDER QTY from the ORDERS table
lookup the PRODUCT in the PROCESS table to get each process/job , time and cost (multiplied by qty)
Add a new line to the JOBS table for each process required (ie where STEP_X is not NULL)
The line would contain:
Job Number
Order ID
Job Seq
Process
Mins
Cost
Basically each Order of each Product requires a number of jobs/processes to complete it.
So I need a full list in the Jobs table of all the jobs/processes with thier times and costs.
Please see attached database.