Results 1 to 3 of 3
  1. #1
    crxftw is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    30

    Adding employee hours done for each completed sale

    Hello. I have database that stores data about sales that are done to the clients and sales will be made into invoices at the end of the month. For every sale there are certain employees doing work who get paid hourly. Previous solution for setting how many hours employee worked for that client that day was simply that employees were set up into teams and team was chosen who did work for client. After submitting sale, total hours done was split (divided by 2) and stored into table that held employee hours done. This system was not working very well as sometimes say total work was done 4 hours, but one employee did 1 hour and other one 3 hours of that and you had to change hours done manually because it was split after completing sale.

    What I would like to do now is that when sale is already submitted, then you have an option to complete sale which should prompt up window where you can choose employees who did the work and enter hours done manually for every employee you chose. That way I could eliminate the team part. I would like to ask ideas how I can achieve that and get some tips maybe.



    Hours done for every employee is needed of course to print payslips at the end of the month for every employee.

    Regards

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    How you set it up on your form is up to you. As far as the table setup, I would create a junction table to facilitate a many to many relationship between your table containing the sales information and the table containing employee information. you would had a field to this table called hoursWorked or something like that. This table at the very minimum would have 4 fields. The first one would be an autonum primary key. the second would be a foreign key to the saleID. the third a foreign key to the empID. the fourth would be hours worked. Upon sale creation, you would query from your form to populate the junction table with the empIDs of all the employees involved with that sale. upon completion, you would update the records with the hours worked (UPDATE tblName SET hoursWorked = FormControl WHERE empID = FormControl AND salesID = FormControl).

    You can then query the junction table for total hours worked or whatever else you want. Again, how you get it onto the form is up to you.

  3. #3
    crxftw is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2011
    Posts
    30
    Hehe thanks for answering, I figured that out already, forgot to edit the post tho. Cheers

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Append employee name with '
    By jgelpi16 in forum Programming
    Replies: 8
    Last Post: 02-11-2011, 09:30 AM
  2. Replies: 2
    Last Post: 02-03-2011, 12:41 PM
  3. Completed Database - Packaging?
    By AccessFreak in forum Database Design
    Replies: 1
    Last Post: 01-10-2011, 12:06 PM
  4. Replies: 0
    Last Post: 09-01-2009, 12:33 PM
  5. hours + condition
    By Miriam in forum Queries
    Replies: 0
    Last Post: 08-09-2009, 06:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums