I'm creating a small payroll program. Currently I have the following tables (among others):
Employee Data - Employee Name, Number, Address, etc.
Employee Hours - Employee Number, Work Date, Hours, [Filing Status (to be filled in using VB code from Employee Tax Status table]
Employee Tax Status - Employee Number, Valid As Of Date, Filing Status
After the user inputs data in the three fields of the Employee Hours file, I want to execute some VB code to figure out which Filing Status should be added to the record.
I'm new to this and have bought some MS Access & VB manuals. I'm looking for help in how to create the code to check for the latest validity date in the Employee Tax Status table for the Employee Number, pick up the associated Filing Status, and put it in the Employee Hours field. Any help on the code would be appreciated.
Thanks,
Ed
Employee Data - Employee Name, Number, Address, etc.
Employee Hours - Employee Number, Work Date, Hours, [Filing Status (to be filled in using VB code from Employee Tax Status table]
Employee Tax Status - Employee Number, Valid As Of Date, Filing Status
After the user inputs data in the three fields of the Employee Hours file, I want to execute some VB code to figure out which Filing Status should be added to the record.
I'm new to this and have bought some MS Access & VB manuals. I'm looking for help in how to create the code to check for the latest validity date in the Employee Tax Status table for the Employee Number, pick up the associated Filing Status, and put it in the Employee Hours field. Any help on the code would be appreciated.
Thanks,
Ed