I am working on a solution which will help to track how projects are performing in the sense of spent hours. I have few tables: Employees, Projects, Calendar. I need to open a form which will list all the dates for specific month from a calendar for specific employee at one view. I.e. I have combo box on the top which will search for employee and month for which I want to enter the data. Then next to each date I will be able to assign hours worked per day and assign the project. How to accomplish that? I searched how it can be done but I am stuck. I created cross join table: Calendar with Employees (who are active based on start and end date) but I do not know if this is a good approach and what I should do with this query.
Related
I get data like this, wherein tasks are being assigned to employees on a daily basis mostly 2 - 3 tasks every day.
The timestamp column shows when was the last task allotted.
What I need is a summary of the following details:
How many employees were assigned the tasks and their details as in their Ids and Names?
What was the last task assigned to them based on the timestamp.
What is the time allowed as per the standards
Only current date's data should show up there.
Something like this:
Time allowed should come from the time allowed standard sheet.
Please help me in knowing how to do it with appscript...
Thanks in advance
I have a form where you choose the employees in a dropdown continous form.(From tblEmployee) that worked this week and store them in TSLabor table. In another form I track what activities were done during the days of the week (could have multiple activities for any given day) in tblActivities. In this form I have a sub form list of all the employees who are in tsLabor for this week. This way the user can input the hours for each employee. (Not all employees will have hours in every activity, but I can handle zero hours.) These records are stored in tsActivityLabor. I add a record for each employee in the TSLabor table with the activityID it each time a new activity record is created.
User can not add/delete in the subfom, but they can in the First form. My issue is how do I add/Delete from the tsActivityLabor table (for each activityID) when an employee is added/deleted from the First form.
I need to check to see if the employee has a record for each activityID for that week. If not add it.
Right now I create a record set of activityIDs for the week from tblActivities. I then create another recordset from the tblTSLabor of all the employees in that week. I then take each ActivityID from the first recordset and create a third recordset of all the employees for that ActivityID in the tsActivityLabor table. I then verify that each employee from the second recordset has a record in the third recordset.
There has to be a quicker way of doing this but I can't figure it out. One thought is to create an update query that could look at the tsActivityLabor table and verify that there is an employee record for each employee for each activity. Researched but can't find any examples of a query like this. any help would be appreciated.
Adolph
In short when queries underlying forms get complicated Access doesn't know how to update the tables and so chooses not to try.
https://learn.microsoft.com/en-us/office/troubleshoot/access/errors-updating-query-form-data
This is not a problem for your case as the TSLabor table in your example can be replaced by a date column in the TSActivityLabor Table. Access is supposed to be user friendly so I'm going to suggest a workflow that lets access help. here is an example:
create the following tables and hook up the relationships under the Database Tools-Relationships Tab.
Now click on any table and hit create form and access will create a working form which properly updates the tables. Here is the form after hitting the Employee table:
Because we set up the relationships in advance Access automatically added the many side of the relationship as a subform. Play with the highlighted record selectors to see how to cycle through records and add new ones.
Next we Start improving the forms. In the EmployeeActivity Form I Replaced Foreign Keys with combo boxes, removed the ID which the user should never see and added an unbound combobox to filter the records.
P.S. if the weekly Activities is still a thing Relate Activities to employees through a weeklyactivities table (a type of super many to many relationship).
I'm trying to create a volunteer signup form for a special needs program.
Aim of this form is to take a spreadsheet with the schedule information of riders and times for a given week and update the corresponding column for [Day, Student] with volunteer name.
Fields are
Volunteer name
Day
Student
A student has maximum of one class per Day.
Based on the day you select, I would like to give a set of Students for that Day. I want to populate the Student Choices based on the Day Selected.
A lot of the volunteering folks are not very adept at using computers so this seems to be the simplest way of capturing a volunteers interest for a given [Day, Student].
ItemResponse gives me a way of accessing the response to each question, can this be done in realtime while the form is being filled s the question.
Is this possible?
I'am going to test this soon but any pointers would be appreciated. Thanks
I'm relatively new to Access and VBA but I have managed to get some basic VBA tricks working in both Access and Excel. Now I've got a challenge that I can't seem to crack. I'm building a database to track maintenance of a small trucking fleet. I've got most of the tables and forms I need to do the basic tracking and management of equipment and maintenance in place.
One of the things we're tracking is called PM's which stands for preventative maintenance (lube jobs and oil changes). We do those on calendar intervals for trailers and mileage intervals for tractors. Right now, I'm trying to get the calendar tracked equipment working. I've a table called tblEquipmentMaster which is where all the specifics for each piece of equipment is kept (make, model, year, VIN, etc) and that table has a field called LastPMDate. All the maintenance records go in two other tables, tblMaintenance which records the unit number, vendor, invoice date and invoice amount and tblMaintenanceDetails which records the each line item of work that was performed on the unit (i.e. replaced water pump, replaced headlight etc).
The maintenance details table also contains a drop down list of standard maintenance codes to allow for easier searching of certain maintenance items later. One of those codes is PM. I also have several forms built to interact with these tables including a data entry form for adding new maintenance records.
What I'm trying to accomplish is to have the LastPMDate field for any unit number in tblEquipmentMaster automatically update to match the InvoiceDate field in tblMaintenance anytime an invoice is entered for that unit number which has a line item containing the code PM.
I've tried building an update query to do this but in addition to changing the LastPMDate field like I want it to, it also ends up changing the invoice dates for all previous PM invoices to the date of the last invoice which contained a PM. Not good.
So my question is, would an update query be the best way to do this or would I be better off with some sort of VBA solution? I have an add record button on my maintenance invoice data entry form which users use as a save record/clear form button when all the info for an invoice has been entered. I'm thinking some VBA code tied to the on_click of that button which would look at the invoice you just added, determine if it contains the PM maintenance code, then update LastPMDate field for that unit number with invoice date from that invoice would be a good way to do it but I honestly have no idea what functions or methods I'd need to get that to work.
Any insights or suggestions appreciated.
It's very hard to follow the flow of what you are describing, even if I have experience of PM and AM (Autonomous maintenance).
What is lacking is the relations between the three tables.
Nevertheless I prefer VBA solutions (maybe because I started programming when everything had to be written...). With VBA you can finely control your workflow.
If I understood well the 1st table is tblMaintenance in which you have the Invoice data.
Then you should have to scan the tblMaintenanceDetails to find the list of PMs and filter the tblEquipmentMaster with current PM value to update the LastPMDate with the date of the 1st table.
Did I succeed in providing you an idea to solve your problem?
Let me know.
One of our team who maintains subscriber content in CRM requested a report that displays total number of active records, email subscriber and email unsubscribers. I can create a report that shows current total for all three subject above. But can't show the historical details.
For example: Active used count for yesterday was 400K then today 403K and tomorrow 4007K, I want to produce a graph that shows the climbing of these numbers by day.
My first thought is to create new entity that stores all these details or a new table in sql and use that in reporting with SSRS.
I want to know if you guys have ever come across this and if so what you think is the best solution?
try once Group by date (Or)
Create a new Entity and write a workflow that runs every day and stores all the counts date wise.
fetch the custom entity data into the report.