Ok so I am working on a Access project and I have hit a roadblock and I need your expert help.
I have a table(tblWorker Stats) with fields: [Worker Code], [worker name], [Jan '16], [Feb '16], [MAr '16], [Apr '16]. All the month name fields contain a count of cases that the worker has not processed in time for that month. I have another table (tblOverdue) with fields: [worker code], [case number] which lists all the individual case numbers that were not processed in time for that current month. We get this monthly data from a remote server and only provides data for the current month.
So what I am trying to do is populate a new field in (tblWorkerStats ) each month to store the count of cases per worker for the current month. How would I go about doing that?
I do not think I can use a APPEND or UPDATE query. What I thought of doing is call on VBA event procedure on the form to store the data from (tblWorkerStats ) into rs1 as recordset. And store results from (qryCountOverdu e) into rs2 as recordset.
Now I want rs2 data appended to rs1 joined on [worker code]. Also if possible, I want the new field name to be the current month name.
And another complex problem is that on the report is that each month I only want to show stats for the last 3 months and since the field names of the last 3 months are going to change every month, I do not know how I would be able to accomplish that. Maybe display last 3 fields based on the field location ordinals but I do not know how.
P.S. I am very new to Access and VBA but I'm catching up very quick and with your help I'm hoping I'll learn a lot more.
Thank you
I have a table(tblWorker Stats) with fields: [Worker Code], [worker name], [Jan '16], [Feb '16], [MAr '16], [Apr '16]. All the month name fields contain a count of cases that the worker has not processed in time for that month. I have another table (tblOverdue) with fields: [worker code], [case number] which lists all the individual case numbers that were not processed in time for that current month. We get this monthly data from a remote server and only provides data for the current month.
So what I am trying to do is populate a new field in (tblWorkerStats ) each month to store the count of cases per worker for the current month. How would I go about doing that?
I do not think I can use a APPEND or UPDATE query. What I thought of doing is call on VBA event procedure on the form to store the data from (tblWorkerStats ) into rs1 as recordset. And store results from (qryCountOverdu e) into rs2 as recordset.
Now I want rs2 data appended to rs1 joined on [worker code]. Also if possible, I want the new field name to be the current month name.
And another complex problem is that on the report is that each month I only want to show stats for the last 3 months and since the field names of the last 3 months are going to change every month, I do not know how I would be able to accomplish that. Maybe display last 3 fields based on the field location ordinals but I do not know how.
P.S. I am very new to Access and VBA but I'm catching up very quick and with your help I'm hoping I'll learn a lot more.
Thank you
Comment